+ ::GpiQueryDeviceBitmapFormats(hPS, 24, alFormats);
+ ulBitcount = alFormats[1]; // the best one for the device
+ if (ulBitcount > 24)
+ ulBitcount = 24; // MAX bits supported by PM
+ memset(&vInfo, '\0', 16);
+ vInfo.cbFix = 16;
+ vInfo.cx = (ULONG)nWidth;
+ vInfo.cy = (ULONG)nHeight;
+ vInfo.cPlanes = 1;
+ vInfo.cBitCount = ulBitcount;
+