• 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
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...