Commit 948bd8e6 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winemac: Directly use win32u for GDI functions in opengl.c.

parent 8534fe2d
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment