Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
15f03ac3
Commit
15f03ac3
authored
Jan 20, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Retrieve the pixel format from win32u for normal windows in wglGetPixelFormat().
parent
899f0102
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
opengl.c
dlls/winemac.drv/opengl.c
+8
-5
No files found.
dlls/winemac.drv/opengl.c
View file @
15f03ac3
...
@@ -1329,12 +1329,11 @@ static BOOL init_gl_info(void)
...
@@ -1329,12 +1329,11 @@ static BOOL init_gl_info(void)
}
}
static
int
get_dc_pixel_format
(
HDC
hdc
)
static
int
get_dc_pixel_format
(
H
WND
hwnd
,
H
DC
hdc
)
{
{
int
format
;
int
format
;
HWND
hwnd
;
if
(
(
hwnd
=
NtUserWindowFromDC
(
hdc
))
)
if
(
hwnd
)
{
{
struct
macdrv_win_data
*
data
;
struct
macdrv_win_data
*
data
;
...
@@ -2719,7 +2718,7 @@ static struct wgl_context *macdrv_wglCreateContextAttribsARB(HDC hdc,
...
@@ -2719,7 +2718,7 @@ static struct wgl_context *macdrv_wglCreateContextAttribsARB(HDC hdc,
TRACE
(
"hdc %p, share_context %p, attrib_list %p
\n
"
,
hdc
,
share_context
,
attrib_list
);
TRACE
(
"hdc %p, share_context %p, attrib_list %p
\n
"
,
hdc
,
share_context
,
attrib_list
);
format
=
get_dc_pixel_format
(
hdc
);
format
=
get_dc_pixel_format
(
NtUserWindowFromDC
(
hdc
),
hdc
);
if
(
!
is_valid_pixel_format
(
format
))
if
(
!
is_valid_pixel_format
(
format
))
{
{
...
@@ -4417,8 +4416,12 @@ static BOOL macdrv_wglDeleteContext(struct wgl_context *context)
...
@@ -4417,8 +4416,12 @@ static BOOL macdrv_wglDeleteContext(struct wgl_context *context)
static
int
macdrv_wglGetPixelFormat
(
HDC
hdc
)
static
int
macdrv_wglGetPixelFormat
(
HDC
hdc
)
{
{
int
format
;
int
format
;
HWND
hwnd
;
if
((
hwnd
=
NtUserWindowFromDC
(
hdc
)))
return
win32u_get_window_pixel_format
(
hwnd
);
format
=
get_dc_pixel_format
(
hdc
);
format
=
get_dc_pixel_format
(
NULL
,
hdc
);
if
(
!
is_valid_pixel_format
(
format
))
/* not set yet */
if
(
!
is_valid_pixel_format
(
format
))
/* not set yet */
format
=
0
;
format
=
0
;
...
...
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