memset(&bmih, 0, sizeof(BITMAPINFOHEADER2));
bmih.cbFix = sizeof(BITMAPINFOHEADER2);
bmih.cx = width;
memset(&bmih, 0, sizeof(BITMAPINFOHEADER2));
bmih.cbFix = sizeof(BITMAPINFOHEADER2);
bmih.cx = width;
- 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);
#else
img->bitmap = CreateBitmap(width, height, 1 /* plane */ ,
depth /* bits per pixel */ , NULL);