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
d0e48343
Commit
d0e48343
authored
Apr 12, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Fix reporting supported color depths in PSDRV_PutImage.
parent
2929ce9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bitmap.c
dlls/wineps.drv/bitmap.c
+5
-2
No files found.
dlls/wineps.drv/bitmap.c
View file @
d0e48343
...
...
@@ -197,7 +197,8 @@ DWORD CDECL PSDRV_PutImage( PHYSDEV dev, HRGN clip, BITMAPINFO *info,
if
(
info
->
bmiHeader
.
biPlanes
!=
1
)
goto
update_format
;
if
(
info
->
bmiHeader
.
biCompression
!=
BI_RGB
)
goto
update_format
;
if
(
info
->
bmiHeader
.
biBitCount
==
16
||
info
->
bmiHeader
.
biBitCount
==
32
)
goto
update_format
;
if
(
info
->
bmiHeader
.
biBitCount
!=
1
&&
info
->
bmiHeader
.
biBitCount
!=
4
&&
info
->
bmiHeader
.
biBitCount
!=
8
&&
info
->
bmiHeader
.
biBitCount
!=
24
)
goto
update_format
;
if
(
!
bits
)
return
ERROR_SUCCESS
;
/* just querying the format */
TRACE
(
"bpp %u %s -> %s
\n
"
,
info
->
bmiHeader
.
biBitCount
,
wine_dbgstr_rect
(
&
src
->
visrect
),
...
...
@@ -297,7 +298,9 @@ DWORD CDECL PSDRV_PutImage( PHYSDEV dev, HRGN clip, BITMAPINFO *info,
update_format:
info
->
bmiHeader
.
biPlanes
=
1
;
if
(
info
->
bmiHeader
.
biBitCount
>
8
)
info
->
bmiHeader
.
biBitCount
=
24
;
if
(
info
->
bmiHeader
.
biBitCount
!=
1
&&
info
->
bmiHeader
.
biBitCount
!=
4
&&
info
->
bmiHeader
.
biBitCount
!=
8
&&
info
->
bmiHeader
.
biBitCount
!=
24
)
info
->
bmiHeader
.
biBitCount
=
24
;
info
->
bmiHeader
.
biCompression
=
BI_RGB
;
return
ERROR_BAD_FORMAT
;
}
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