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
4571201f
Commit
4571201f
authored
Aug 29, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac.drv: Invalidate mode cache when enum flags changes.
parent
55727035
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
display.c
dlls/winemac.drv/display.c
+3
-1
No files found.
dlls/winemac.drv/display.c
View file @
4571201f
...
...
@@ -54,6 +54,7 @@ static const WCHAR initial_mode_keyW[] = {'I','n','i','t','i','a','l',' ','D','i
static
const
WCHAR
pixelencodingW
[]
=
{
'P'
,
'i'
,
'x'
,
'e'
,
'l'
,
'E'
,
'n'
,
'c'
,
'o'
,
'd'
,
'i'
,
'n'
,
'g'
,
0
};
static
CFArrayRef
cached_modes
;
static
DWORD
cached_modes_flags
;
static
BOOL
cached_modes_has_8bpp
,
cached_modes_has_16bpp
;
static
int
cached_default_mode_bpp
;
static
pthread_mutex_t
cached_modes_mutex
=
PTHREAD_MUTEX_INITIALIZER
;
...
...
@@ -1014,11 +1015,12 @@ BOOL macdrv_EnumDisplaySettingsEx(LPCWSTR devname, DWORD mode, LPDEVMODEW devmod
pthread_mutex_lock
(
&
cached_modes_mutex
);
if
(
mode
==
0
||
!
cached_modes
)
if
(
mode
==
0
||
!
cached_modes
||
flags
!=
cached_modes_flags
)
{
if
(
cached_modes
)
CFRelease
(
cached_modes
);
cached_modes
=
copy_display_modes
(
displays
[
0
].
displayID
,
(
flags
&
EDS_RAWMODE
)
!=
0
);
cached_modes_has_8bpp
=
cached_modes_has_16bpp
=
FALSE
;
cached_modes_flags
=
flags
;
if
(
cached_modes
)
{
...
...
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