forked from AuroraMiddleware/gtk
ac64d2d910
Make _gdk_win32_display_get_monitor_scale_factor() less complex, by: * Drop the preceding underscore. * Dropping an unused parameter. * Using a GdkSurface instead of a HWND, as the HWND that we pass into this function might have been taken from a GdkSurface, which are now always created with CS_OWNDC. This means if a GdkSurface was passed in, we ensure that we only acquire the DC from the HWND once, and do not attempt to call ReleaseDC() on it. * Store the HDC that we acquire from the GdkSurface's HWND into the surface, and use that as the HDC we need for our GdkGLContext. * Drop the gl_hwnd from GdkWin32Display, as that is really should be stored in the GdkSurface. * For functions that were updated, name GdkWin32Display variables as display_win32 and GdkSurface variables as surface, to unify things. * Stop calling ReleaseDC() on the HDC that we use for OpenGL, since they were acquired from HWND's created with CS_OWNDC. |
||
---|---|---|
.. | ||
rc | ||
bdfcursor.c | ||
cursor.bdf | ||
gdkcairocontext-win32.c | ||
gdkcairocontext-win32.h | ||
gdkclipboard-win32.c | ||
gdkclipboard-win32.h | ||
gdkclipdrop-win32.c | ||
gdkclipdrop-win32.h | ||
gdkcursor-win32.c | ||
gdkdevice-virtual.c | ||
gdkdevice-virtual.h | ||
gdkdevice-win32.c | ||
gdkdevice-win32.h | ||
gdkdevice-wintab.c | ||
gdkdevice-wintab.h | ||
gdkdevicemanager-win32.c | ||
gdkdevicemanager-win32.h | ||
gdkdisplay-win32.c | ||
gdkdisplay-win32.h | ||
gdkdisplaymanager-win32.c | ||
gdkdrag-win32.c | ||
gdkdrop-win32.c | ||
gdkevents-win32.c | ||
gdkglcontext-win32.c | ||
gdkglcontext-win32.h | ||
gdkglobals-win32.c | ||
gdkhdataoutputstream-win32.c | ||
gdkhdataoutputstream-win32.h | ||
gdkkeys-win32.c | ||
gdkmain-win32.c | ||
gdkmonitor-win32.c | ||
gdkmonitor-win32.h | ||
gdkprivate-win32.h | ||
gdkproperty-win32.c | ||
gdkscreen-win32.c | ||
gdksurface-win32.c | ||
gdksurface-win32.h | ||
gdkvulkancontext-win32.c | ||
gdkvulkancontext-win32.h | ||
gdkwin32.h | ||
gdkwin32cursor.h | ||
gdkwin32display.h | ||
gdkwin32displaymanager.h | ||
gdkwin32dnd-private.h | ||
gdkwin32dnd.h | ||
gdkwin32glcontext.h | ||
gdkwin32id.c | ||
gdkwin32keys.h | ||
gdkwin32langnotification.c | ||
gdkwin32langnotification.h | ||
gdkwin32misc.h | ||
gdkwin32monitor.h | ||
gdkwin32screen.h | ||
gdkwin32surface.h | ||
libwntab32x.la | ||
meson.build | ||
pktdef.h | ||
wintab.h | ||
xcursors.h |