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
1c2ff71c
Commit
1c2ff71c
authored
Aug 20, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set X11DRV_DeviceCaps.numColors according to doc (fixes Cubase VST24
startup problem).
parent
afe9bb81
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
init.c
graphics/x11drv/init.c
+6
-0
No files found.
graphics/x11drv/init.c
View file @
1c2ff71c
...
...
@@ -194,6 +194,12 @@ BOOL X11DRV_GDI_Initialize(void)
X11DRV_DevCaps
.
vertRes
=
screen_height
;
X11DRV_DevCaps
.
bitsPixel
=
screen_depth
;
/* MSDN: Number of entries in the device's color table, if the device has
* a color depth of no more than 8 bits per pixel.For devices with greater
* color depths, -1 is returned.
*/
X11DRV_DevCaps
.
numColors
=
(
screen_depth
>
8
)
?-
1
:
(
1
<<
screen_depth
);
/* Resolution will be adjusted during the font init */
X11DRV_DevCaps
.
logPixelsX
=
(
int
)(
X11DRV_DevCaps
.
horzRes
*
25
.
4
/
X11DRV_DevCaps
.
horzSize
);
...
...
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