From: Derek Foreman Date: Sun, 18 May 2003 19:23:26 +0000 (+0000) Subject: rename poorly named offsets X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b9ecd5bf25256ba3aadaddd8491afc0cb85891dc;p=chaz%2Fopenbox rename poorly named offsets --- diff --git a/render/image.c b/render/image.c index e0c5540f..7b58712b 100644 --- a/render/image.c +++ b/render/image.c @@ -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); } } }