]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xpm/simx.c
Updated version to 2.3.2 so apps can test for differences in new merged source
[wxWidgets.git] / src / xpm / simx.c
index a196a26aa0b16ad6f418d4b59a18b43c0f38a769..267c4195765dbb6aac8123a2791299ed697760ec 100644 (file)
@@ -274,10 +274,8 @@ XCreateImage(Display *d, Visual *v,
 {
     XImage *img = (XImage *) XpmMalloc(sizeof(XImage));
 #ifdef __OS2__
-    HPS                  hps;
     BITMAPINFOHEADER2    bmih;
 
-    hps = WinGetScreenPS(HWND_DESKTOP);
     memset(&bmih, 0, sizeof(BITMAPINFOHEADER2));
     bmih.cbFix = sizeof(BITMAPINFOHEADER2);
     bmih.cx = width;
@@ -295,8 +293,8 @@ XCreateImage(Display *d, Visual *v,
            img->bitmap = CreateCompatibleBitmap(*d, width, height);
         } else*/ {
 #ifdef __OS2__
-        img->bitmap = GpiCreateBitmap(hps, &bmih, 0L, NULL, NULL);
-        WinReleasePS(hps);
+        img->bitmap = GpiCreateBitmap(*d, &bmih, 0L, NULL, NULL);
+        WinReleasePS(*d);
 #else
            img->bitmap = CreateBitmap(width, height, 1 /* plane */ ,
                                       depth /* bits per pixel */ , NULL);