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
f605add4
Commit
f605add4
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: Separately store the internal pixel format set by WGL_WINE_pixel_format_passthrough.
parent
46c8a637
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
opengl.c
dlls/winemac.drv/opengl.c
+11
-8
No files found.
dlls/winemac.drv/opengl.c
View file @
f605add4
...
...
@@ -1525,7 +1525,7 @@ static BOOL create_context(struct wgl_context *context, CGLContextObj share, uns
*
* Implementation of wglSetPixelFormat and wglSetPixelFormatWINE.
*/
static
BOOL
set_pixel_format
(
HDC
hdc
,
int
fmt
,
BOOL
allow_reset
)
static
BOOL
set_pixel_format
(
HDC
hdc
,
int
fmt
,
BOOL
internal
)
{
struct
macdrv_win_data
*
data
;
const
pixel_format
*
pf
;
...
...
@@ -1540,16 +1540,19 @@ static BOOL set_pixel_format(HDC hdc, int fmt, BOOL allow_reset)
return
FALSE
;
}
if
(
!
(
data
=
get_win_data
(
hwnd
))
)
if
(
!
internal
)
{
FIXME
(
"DC for window %p of other process: not implemented
\n
"
,
hwnd
);
return
FALSE
;
/* cannot change it if already set */
int
prev
=
win32u_get_window_pixel_format
(
hwnd
);
if
(
prev
)
return
prev
==
fmt
;
}
if
(
!
allow_reset
&&
data
->
pixel_format
)
/* cannot change it if already set */
if
(
!
(
data
=
get_win_data
(
hwnd
)))
{
ret
=
(
data
->
pixel_format
==
fmt
);
goto
done
;
FIXME
(
"DC for window %p of other process: not implemented
\n
"
,
hwnd
);
return
FALSE
;
}
/* Check if fmt is in our list of supported formats to see if it is supported. */
...
...
@@ -1588,7 +1591,7 @@ static BOOL set_pixel_format(HDC hdc, int fmt, BOOL allow_reset)
done:
release_win_data
(
data
);
if
(
ret
&&
gl_surface_mode
==
GL_SURFACE_BEHIND
)
win32u_set_window_pixel_format
(
hwnd
,
fmt
,
FALSE
);
win32u_set_window_pixel_format
(
hwnd
,
fmt
,
internal
);
return
ret
;
}
...
...
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