1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-09 04:16:08 +00:00
wine/dlls/gdi32
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
..
tests win32u: Create a dummy bitmap for display device contexts. 2022-05-30 22:07:42 +02:00
uniscribe gdi32: Use NtUserGetSysColor() directly. 2022-04-19 17:35:33 +02:00
dc.c win32u: Introduce inline helpers for NtUserCallOneParam calls. 2022-04-13 18:13:06 +02:00
emfdc.c gdi32: Free the client-side emf dc info. 2022-05-24 17:34:59 +02:00
enhmetafile.c gdi32: Enable compilation with long types. 2022-02-10 18:09:46 +01:00
gdi_private.h
gdi32.rc
gdi32.spec gdi32: Implement D3DKMTQueryVideoMemoryInfo(). 2022-05-17 17:50:43 +02:00
icm.c gdi32: Enable compilation with long types. 2022-02-10 18:09:46 +01:00
Makefile.in gdi32: Link directly to user32. 2022-02-17 22:16:03 +01:00
metadc.c gdi32: Enable compilation with long types. 2022-02-10 18:09:46 +01:00
metafile.c gdi32: Enable compilation with long types. 2022-02-10 18:09:46 +01:00
objects.c win32u: Introduce inline helpers for NtUserCallHwndParam calls. 2022-04-13 18:13:28 +02:00
opengl.c
resource.h
text.c gdi32: Support UTF-8 codepage in TranslateCharsetInfo(). 2022-04-22 13:06:15 +02:00