]> Dogcows Code - chaz/openbox/commitdiff
rename poorly named offsets
authorDerek Foreman <manmower@gmail.com>
Sun, 18 May 2003 19:23:26 +0000 (19:23 +0000)
committerDerek Foreman <manmower@gmail.com>
Sun, 18 May 2003 19:23:26 +0000 (19:23 +0000)
render/image.c

index e0c5540fa0e29b279492c3a0bdfaf40d99fd8257..7b58712bde9bd3a890249cc440d00ef5ed8f40d7 100644 (file)
@@ -61,16 +61,17 @@ void image_draw(pixel32 *target, TextureRGBA *rgba, Rect *position,
             }
 
             /* background color */
-            bgr = target[t] >> default_red_shift;
-            bgg = target[t] >> default_green_shift;
-            bgb = target[t] >> default_blue_shift;
+            bgr = target[t] >> default_red_offset;
+            bgg = target[t] >> default_green_offset;
+            bgb = target[t] >> default_blue_offset;
 
             r = bgr + (((r - bgr) * alpha) >> 8);
             g = bgg + (((g - bgg) * alpha) >> 8);
             b = bgb + (((b - bgb) * alpha) >> 8);
 
-            target[t] = (r << default_red_shift) | (g << default_green_shift) |
-                (b << default_blue_shift);
+            target[t] = (r << default_red_offset)
+                      | (g << default_green_offset)
+                      | (b << default_blue_offset);
         }
     }
 }
This page took 0.028832 seconds and 4 git commands to generate.