Alex Henrie : winex11: Initialize the length of each side of the color cube to 1.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 2 09:47:14 CST 2015


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

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Thu Oct 29 21:30:21 2015 -0600

winex11: Initialize the length of each side of the color cube to 1.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winex11.drv/palette.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c
index 460615c..953c9ea 100644
--- a/dlls/winex11.drv/palette.c
+++ b/dlls/winex11.drv/palette.c
@@ -587,7 +587,7 @@ static void X11DRV_PALETTE_FillDefaultColors( const PALETTEENTRY *sys_pal_templa
   * cube - based on Greg Kreider's code.
   */
 
-  int i = 0, idx = 0;
+  int i = 1, idx = 0;
   int red, no_r, inc_r;
   int green, no_g, inc_g;
   int blue, no_b, inc_b;




More information about the wine-cvs mailing list