Gerald Pfeifer : winex11.drv: Remove colour_is_brighter.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 21 15:42:12 CDT 2014


Module: wine
Branch: master
Commit: fe79e62a9f38316af8a78af3eb42a782ffb8eda2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fe79e62a9f38316af8a78af3eb42a782ffb8eda2

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Wed Aug 20 17:23:03 2014 +0200

winex11.drv: Remove colour_is_brighter.

---

 dlls/winex11.drv/palette.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c
index cd90885..cf049c5 100644
--- a/dlls/winex11.drv/palette.c
+++ b/dlls/winex11.drv/palette.c
@@ -782,12 +782,6 @@ static int X11DRV_SysPaletteLookupPixel( COLORREF col, BOOL skipReserved )
 }
 
  
-static inline BOOL colour_is_brighter(RGBQUAD c1, RGBQUAD c2)
-{
-    return (c1.rgbRed * c1.rgbRed + c1.rgbGreen * c1.rgbGreen + c1.rgbBlue * c1.rgbBlue) > 
-        (c2.rgbRed * c2.rgbRed + c2.rgbGreen * c2.rgbGreen + c2.rgbBlue * c2.rgbBlue);
-}
-
 /***********************************************************************
  *           X11DRV_PALETTE_GetColor
  *




More information about the wine-cvs mailing list