From bf3a40ad66d20b85c21233fce909c22f8dcf0bf8 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 23 Jan 2003 05:58:56 +0000 Subject: [PATCH] fixed incredibly embarassing cut'n'paste error in highlight --- otk/truerendercontrol.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otk/truerendercontrol.cc b/otk/truerendercontrol.cc index 6a74007f..cc46ebd9 100644 --- a/otk/truerendercontrol.cc +++ b/otk/truerendercontrol.cc @@ -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; -- 2.45.2