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
a3c10cf1
Commit
a3c10cf1
authored
Jun 23, 2003
by
Huw Davies
Committed by
Alexandre Julliard
Jun 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we update dc->bitsPerPixel.
parent
280528a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
init.c
dlls/wineps/init.c
+3
-1
No files found.
dlls/wineps/init.c
View file @
a3c10cf1
...
@@ -312,6 +312,8 @@ BOOL PSDRV_CreateDC( DC *dc, PSDRV_PDEVICE **pdev, LPCSTR driver, LPCSTR device,
...
@@ -312,6 +312,8 @@ BOOL PSDRV_CreateDC( DC *dc, PSDRV_PDEVICE **pdev, LPCSTR driver, LPCSTR device,
PSDRV_UpdateDevCaps
(
physDev
);
PSDRV_UpdateDevCaps
(
physDev
);
dc
->
hFont
=
PSDRV_DefaultFont
;
dc
->
hFont
=
PSDRV_DefaultFont
;
if
(
GetObjectType
(
dc
->
hSelf
)
!=
OBJ_MEMDC
)
dc
->
bitsPerPixel
=
physDev
->
pi
->
ppd
->
ColorDevice
?
8
:
1
;
return
TRUE
;
return
TRUE
;
}
}
...
@@ -367,7 +369,7 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
...
@@ -367,7 +369,7 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
case
VERTRES
:
case
VERTRES
:
return
physDev
->
vertRes
;
return
physDev
->
vertRes
;
case
BITSPIXEL
:
case
BITSPIXEL
:
return
(
physDev
->
pi
->
ppd
->
ColorDevice
?
8
:
1
)
;
return
physDev
->
pi
->
ppd
->
ColorDevice
?
8
:
1
;
case
PLANES
:
case
PLANES
:
return
1
;
return
1
;
case
NUMBRUSHES
:
case
NUMBRUSHES
:
...
...
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