wine/dlls/gdi32/tests
Zhiyi Zhang 546cbdc250 win32u: Create a dummy bitmap for display device contexts.
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: Zhiyi Zhang <zzhang@codeweavers.com>
2022-05-30 22:07:42 +02:00
..
bitmap.c win32u: Create a dummy bitmap for display device contexts. 2022-05-30 22:07:42 +02:00
brush.c
clipping.c
dc.c
dib.c
driver.c gdi32: Implement D3DKMTQueryVideoMemoryInfo(). 2022-05-17 17:50:43 +02:00
font.c gdi32/tests: Trace the invalid height in test_max_height(). 2022-04-27 16:14:25 +02:00
gdiobj.c
generated.c
icm.c
Makefile.in
mapping.c
metafile.c
palette.c
path.c
pen.c
resource.rc
vertical.sfd
vertical.ttf
wine_langnames.sfd
wine_langnames.ttf
wine_langnames2.sfd
wine_langnames2.ttf
wine_langnames3.sfd
wine_langnames3.ttf
wine_longname.sfd
wine_longname.ttf
wine_nul.sfd
wine_nul.ttf
wine_test.sfd
wine_test.ttf
wine_ttfnames.sfd
wine_ttfnames.ttf
wine_ttfnames_bold.sfd
wine_ttfnames_bold.ttf
wine_vdmx.sfd
wine_vdmx.ttf