1 Feb 2003 02:21
[DDRAW] Fix bug 1246
Christian Costa <titan.costa <at> wanadoo.fr>
2003-02-01 01:21:59 GMT
2003-02-01 01:21:59 GMT
Hi, This patch fixes bug 1246 : http://bugs.winehq.com/show_bug.cgi?id=1246 Bye, Christian. Changelog : Add support for 24 bpp to _Blt_ColorFill. Fix endianness issue in DIB_DirectDrawSurface_Blt. Christian Costa titan.costa <at> wanadoo.fr
Index: dsurface/dib.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/dsurface/dib.c,v
retrieving revision 1.26
diff -u -r1.26 dib.c
--- dsurface/dib.c 8 Jan 2003 21:09:27 -0000 1.26
+++ dsurface/dib.c 1 Feb 2003 00:51:46 -0000
<at> <at> -326,6 +326,13 <at> <at>
switch(bpp) {
case 1: COLORFILL_ROW(BYTE)
case 2: COLORFILL_ROW(WORD)
+ case 3: { BYTE *d = (BYTE *) buf;
+ for (x = 0; x < width; x++,d+=3) {
+ d[0] = (color ) & 0xFF;
(Continue reading)
RSS Feed