]> Dogcows Code - chaz/openbox/commitdiff
fixed incredibly embarassing cut'n'paste error in highlight
authorDerek Foreman <manmower@gmail.com>
Thu, 23 Jan 2003 05:58:56 +0000 (05:58 +0000)
committerDerek Foreman <manmower@gmail.com>
Thu, 23 Jan 2003 05:58:56 +0000 (05:58 +0000)
otk/truerendercontrol.cc

index 6a74007f352d93003203304c665b53489a26016e..cc46ebd9794e64774a14289ac46ca62372b2bf0c 100644 (file)
@@ -205,8 +205,8 @@ void TrueRenderControl::highlight(pixel32 *x, pixel32 *y, bool raised) const
   b = *up & 0xFF;
   b += b >> 1;
   if (r > 255) r = 255;
-  if (g > 255) r = 255;
-  if (b > 255) r = 255;
+  if (g > 255) g = 255;
+  if (b > 255) b = 255;
   *up = (r << 16) + (g << 8) + b;
   
   r = (*down >> 16) & 0xFF;
This page took 0.024937 seconds and 4 git commands to generate.