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
20a88616
Commit
20a88616
authored
Feb 25, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Mar 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Convert 24-bit into 32-bit color before looking for an
available screen resolution. We do this during enumeration, so there would be no 24-bit modes available.
parent
ba2c1e51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
settings.c
dlls/x11drv/settings.c
+3
-2
No files found.
dlls/x11drv/settings.c
View file @
20a88616
...
...
@@ -237,7 +237,7 @@ static const char * _DM_fields(DWORD fields)
LONG
X11DRV_ChangeDisplaySettingsEx
(
LPCWSTR
devname
,
LPDEVMODEW
devmode
,
HWND
hwnd
,
DWORD
flags
,
LPVOID
lpvoid
)
{
DWORD
i
;
DWORD
i
,
dwBpp
;
DEVMODEW
dm
;
TRACE
(
"(%s,%p,%p,0x%08lx,%p)
\n
"
,
debugstr_w
(
devname
),
devmode
,
hwnd
,
flags
,
lpvoid
);
...
...
@@ -259,12 +259,13 @@ LONG X11DRV_ChangeDisplaySettingsEx( LPCWSTR devname, LPDEVMODEW devmode,
}
devmode
=
&
dm
;
}
dwBpp
=
(
devmode
->
dmBitsPerPel
==
24
)
?
32
:
devmode
->
dmBitsPerPel
;
for
(
i
=
0
;
i
<
dd_mode_count
;
i
++
)
{
if
(
devmode
->
dmFields
&
DM_BITSPERPEL
)
{
if
(
d
evmode
->
dmBitsPerPel
!=
dd_modes
[
i
].
dwBPP
)
if
(
d
wBpp
!=
dd_modes
[
i
].
dwBPP
)
continue
;
}
if
(
devmode
->
dmFields
&
DM_PELSWIDTH
)
...
...
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