X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Frendercontrol.cc;fp=otk%2Frendercontrol.cc;h=a4de270a3ab6abe857fc43349624f8c1bb7185b2;hb=e3f6e0ff8195e73f2fa8c9db431941e171dd0041;hp=90f99632426efb8db566ce2c58252ae45beeb1ae;hpb=53b5c60a5e8bbf2942ef174c2db64db6cdac3e26;p=chaz%2Fopenbox diff --git a/otk/rendercontrol.cc b/otk/rendercontrol.cc index 90f99632..a4de270a 100644 --- a/otk/rendercontrol.cc +++ b/otk/rendercontrol.cc @@ -285,12 +285,7 @@ void RenderControl::drawGradientBackground( } reduceDepth(sf, im); - - im->data = (char*) data; - sf.setPixmap(im); - - im->data = NULL; XDestroyImage(im); } @@ -451,7 +446,7 @@ void RenderControl::drawImage(Surface &sf, int w, int h, if (x < 0) x = 0; if (y < 0) y = 0; - // XXX SCALING!@!&*(@! to make it fit on the surface + // Reduce the image size if its too big to make it fit on the surface int oldw = w, oldh = h; unsigned long *olddata = data; if (w > sfw) w = sfw; @@ -507,12 +502,7 @@ void RenderControl::drawImage(Surface &sf, int w, int h, im->byte_order = endian; reduceDepth(sf, im); - - im->data = (char*) bg; - sf.setPixmap(im); - - im->data = NULL; XDestroyImage(im); }