Jacek Caban : winemac: Directly use win32u for GDI functions in opengl.c.
Alexandre Julliard
julliard at winehq.org
Fri May 20 15:26:49 CDT 2022
Module: wine
Branch: master
Commit: 948bd8e6c5c1d3950a824c14f004c148c15f99b3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=948bd8e6c5c1d3950a824c14f004c148c15f99b3
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri May 20 14:16:30 2022 +0200
winemac: Directly use win32u for GDI functions in opengl.c.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winemac.drv/opengl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c
index f553b93da5a..bf7effa7aeb 100644
--- a/dlls/winemac.drv/opengl.c
+++ b/dlls/winemac.drv/opengl.c
@@ -3071,7 +3071,7 @@ static HDC macdrv_wglGetPbufferDCARB(struct wgl_pbuffer *pbuffer)
HDC hdc;
struct wgl_pbuffer *prev;
- hdc = CreateDCA("DISPLAY", NULL, NULL, NULL);
+ hdc = NtGdiOpenDCW(NULL, NULL, NULL, 0, TRUE, NULL, NULL, NULL);
if (!hdc) return 0;
pthread_mutex_lock(&dc_pbuffers_mutex);
@@ -3932,7 +3932,7 @@ static int macdrv_wglReleasePbufferDCARB(struct wgl_pbuffer *pbuffer, HDC hdc)
pthread_mutex_unlock(&dc_pbuffers_mutex);
- return hdc && DeleteDC(hdc);
+ return hdc && NtGdiDeleteObjectApp(hdc);
}
More information about the wine-cvs
mailing list