Displaying 1 result from an estimated 1 matches for "lpbitmapinfo".
Did you mean:
bitmapinfo
2011 Nov 20
2
DIBEngine: GetDIBits and BitBlt
...GetDIBits and BitBlt for the purpose of capturing a snapshot of the screen.
The problem is that these functions seem to behave a little different with Wineskin than in Windows. For example:
HBITMAP hbm;
hbm = (HBITMAP) GetCurrentObject(bitmapDC, OBJ_BITMAP);
GetDIBits(bitmapDC, hbm, 0, 0, NULL, (LPBITMAPINFO) bitmapInfo, DIB_RGB_COLORS);
After I do the above, I get wrong info in bitmapInfo (bitcount 1 instead of 32, width 1 instead of 1366, height 1 instead of 768, compression BI_RGB instead of the BI_BITFIELDS that I get in Windows).
Also, when I use BitBlt to copy from screen DC to a bitmap DC, I g...