fix return value of wineps StretchDIBits

Huw D M Davies h.davies1 at physics.ox.ac.uk
Mon Nov 3 11:41:49 CST 2003


        Huw Davies <huw at codeweavers.com>
        Fix the return value of StretchDIBits.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/wineps/bitmap.c
===================================================================
RCS file: /home/wine/wine/dlls/wineps/bitmap.c,v
retrieving revision 1.9
diff -u -r1.9 bitmap.c
--- dlls/wineps/bitmap.c	19 May 2003 19:06:47 -0000	1.9
+++ dlls/wineps/bitmap.c	3 Nov 2003 17:39:48 -0000
@@ -19,6 +19,7 @@
  */
 
 #include <assert.h>
+#include <stdlib.h>
 
 #include "psdrv.h"
 #include "winbase.h"
@@ -337,5 +338,5 @@
     PSDRV_WriteSpool(physDev, ">\n", 2);  /* End-of-Data for /HexASCIIDecodeFilter */
     PSDRV_WriteGRestore(physDev);
     PSDRV_ResetClip(physDev);
-    return TRUE;
+    return abs(heightSrc);
 }



More information about the wine-patches mailing list