X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ftruerendercontrol.cc;h=1d5b8dc44bc37b3e327a699e3fda5a89c54aebaa;hb=ec2113ca5bbb6043fafab0623f24e991e052f77e;hp=ffe5b181388685a33493bd499aecd2dafd05013c;hpb=72ff846dbb56ec36231fb761b864da09885d3690;p=chaz%2Fopenbox diff --git a/otk/truerendercontrol.cc b/otk/truerendercontrol.cc index ffe5b181..1d5b8dc4 100644 --- a/otk/truerendercontrol.cc +++ b/otk/truerendercontrol.cc @@ -25,10 +25,11 @@ TrueRenderControl::TrueRenderControl(int screen) _green_offset(0), _blue_offset(0) { + printf("Initializing TrueColor RenderControl\n"); + const ScreenInfo *info = display->screenInfo(_screen); XImage *timage = XCreateImage(**display, info->visual(), info->depth(), ZPixmap, 0, NULL, 1, 1, 32, 0); - printf("Initializing TrueColor RenderControl\n"); unsigned long red_mask, green_mask, blue_mask; @@ -55,7 +56,7 @@ TrueRenderControl::~TrueRenderControl() void TrueRenderControl::reduceDepth(Surface &sf, XImage *im) const { -// since pixel32 is the largest possible pixel size, we can share the array + // since pixel32 is the largest possible pixel size, we can share the array int r, g, b; int x,y; pixel32 *data = sf.pixelData();