• Zhiyi Zhang's avatar
    win32u: Create a dummy bitmap for display device contexts. · 546cbdc2
    Zhiyi Zhang authored
    On Windows 7 and older versions of Windows, calling GetCurrentObject(hdc, OBJ_BITMAP) for a display
    device context will return a valid handle. However, this handle will fail for GetObject(). On newer
    versions of Windows, GetCurrentObject(hdc, OBJ_BITMAP) for display device contexts returns a bitmap
    of virtual screen size and its size changes after display mode changes. This behavior is tested in
    the _check_display_dc() function in user32/tests/monitor.c.
    
    The screen shot function of WeChat depends on GetObject() to either return failure or a valid size
    for the bitmap from display device contexts. Since Wine currently report Windows 7 as default and to
    save memory, the Windows 7 behavior is implemented.
    Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
    546cbdc2
Name
Last commit
Last update
..
dibdrv Loading commit data...
tests Loading commit data...
Makefile.in Loading commit data...
bitblt.c Loading commit data...
bitmap.c Loading commit data...
brush.c Loading commit data...
class.c Loading commit data...
clipboard.c Loading commit data...
clipping.c Loading commit data...
cursoricon.c Loading commit data...
dc.c Loading commit data...
dce.c Loading commit data...
defwnd.c Loading commit data...
dib.c Loading commit data...
driver.c Loading commit data...
emfdrv.c Loading commit data...
font.c Loading commit data...
freetype.c Loading commit data...
gdiobj.c Loading commit data...
hook.c Loading commit data...
input.c Loading commit data...
main.c Loading commit data...
mapping.c Loading commit data...
menu.c Loading commit data...
message.c Loading commit data...
ntgdi_private.h Loading commit data...
ntuser_private.h Loading commit data...
opentype.c Loading commit data...
painting.c Loading commit data...
palette.c Loading commit data...
path.c Loading commit data...
pen.c Loading commit data...
printdrv.c Loading commit data...
region.c Loading commit data...
spy.c Loading commit data...
syscall.c Loading commit data...
sysparams.c Loading commit data...
vertical.c Loading commit data...
vulkan.c Loading commit data...
win32u.spec Loading commit data...
win32u_private.h Loading commit data...
window.c Loading commit data...
winstation.c Loading commit data...
wrappers.c Loading commit data...