Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
46af1ada
Commit
46af1ada
authored
May 20, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Directly use win32u for user functions in opengl.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
parent
7b9fd801
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
opengl.c
dlls/winemac.drv/opengl.c
+6
-6
No files found.
dlls/winemac.drv/opengl.c
View file @
46af1ada
...
...
@@ -1330,7 +1330,7 @@ static int get_dc_pixel_format(HDC hdc)
int
format
;
HWND
hwnd
;
if
((
hwnd
=
WindowFromDC
(
hdc
)))
if
((
hwnd
=
NtUser
WindowFromDC
(
hdc
)))
{
struct
macdrv_win_data
*
data
;
...
...
@@ -1526,12 +1526,12 @@ static BOOL set_pixel_format(HDC hdc, int fmt, BOOL allow_reset)
{
struct
macdrv_win_data
*
data
;
const
pixel_format
*
pf
;
HWND
hwnd
=
WindowFromDC
(
hdc
);
HWND
hwnd
=
NtUser
WindowFromDC
(
hdc
);
BOOL
ret
=
FALSE
;
TRACE
(
"hdc %p format %d
\n
"
,
hdc
,
fmt
);
if
(
!
hwnd
||
hwnd
==
GetDesktopWindow
())
if
(
!
hwnd
||
hwnd
==
NtUser
GetDesktopWindow
())
{
WARN
(
"not a proper window DC %p/%p
\n
"
,
hdc
,
hwnd
);
return
FALSE
;
...
...
@@ -3485,7 +3485,7 @@ static BOOL macdrv_wglMakeContextCurrentARB(HDC draw_hdc, HDC read_hdc, struct w
return
TRUE
;
}
if
((
hwnd
=
WindowFromDC
(
draw_hdc
)))
if
((
hwnd
=
NtUser
WindowFromDC
(
draw_hdc
)))
{
if
(
!
(
data
=
get_win_data
(
hwnd
)))
{
...
...
@@ -3555,7 +3555,7 @@ static BOOL macdrv_wglMakeContextCurrentARB(HDC draw_hdc, HDC read_hdc, struct w
context
->
read_pbuffer
=
NULL
;
if
(
read_hdc
&&
read_hdc
!=
draw_hdc
)
{
if
((
hwnd
=
WindowFromDC
(
read_hdc
)))
if
((
hwnd
=
NtUser
WindowFromDC
(
read_hdc
)))
{
if
((
data
=
get_win_data
(
hwnd
)))
{
...
...
@@ -4543,7 +4543,7 @@ static BOOL WINAPI macdrv_wglSwapBuffers(HDC hdc)
sync_context
(
context
);
}
if
((
hwnd
=
WindowFromDC
(
hdc
)))
if
((
hwnd
=
NtUser
WindowFromDC
(
hdc
)))
{
struct
macdrv_win_data
*
data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment