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
ad7e889c
Commit
ad7e889c
authored
Feb 24, 2014
by
Huw Davies
Committed by
Alexandre Julliard
Feb 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Use the correct colours when a monochrome bitmap without a colour table is the source.
parent
90dfe084
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
bitmap.c
dlls/wineps.drv/bitmap.c
+15
-6
No files found.
dlls/wineps.drv/bitmap.c
View file @
ad7e889c
...
...
@@ -101,6 +101,7 @@ static BOOL PSDRV_WriteImageMaskHeader(PHYSDEV dev, const BITMAPINFO *info, INT
INT
widthSrc
,
INT
heightSrc
)
{
PSCOLOR
bkgnd
,
foregnd
;
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
assert
(
info
->
bmiHeader
.
biBitCount
==
1
);
...
...
@@ -108,12 +109,20 @@ static BOOL PSDRV_WriteImageMaskHeader(PHYSDEV dev, const BITMAPINFO *info, INT
the foregnd color corresponds to a bit equal to
0 in the bitmap.
*/
PSDRV_CreateColor
(
dev
,
&
foregnd
,
RGB
(
info
->
bmiColors
[
0
].
rgbRed
,
info
->
bmiColors
[
0
].
rgbGreen
,
info
->
bmiColors
[
0
].
rgbBlue
)
);
PSDRV_CreateColor
(
dev
,
&
bkgnd
,
RGB
(
info
->
bmiColors
[
1
].
rgbRed
,
info
->
bmiColors
[
1
].
rgbGreen
,
info
->
bmiColors
[
1
].
rgbBlue
)
);
if
(
!
info
->
bmiHeader
.
biClrUsed
)
{
PSDRV_CreateColor
(
dev
,
&
foregnd
,
GetTextColor
(
dev
->
hdc
)
);
bkgnd
=
physDev
->
bkColor
;
}
else
{
PSDRV_CreateColor
(
dev
,
&
foregnd
,
RGB
(
info
->
bmiColors
[
0
].
rgbRed
,
info
->
bmiColors
[
0
].
rgbGreen
,
info
->
bmiColors
[
0
].
rgbBlue
)
);
PSDRV_CreateColor
(
dev
,
&
bkgnd
,
RGB
(
info
->
bmiColors
[
1
].
rgbRed
,
info
->
bmiColors
[
1
].
rgbGreen
,
info
->
bmiColors
[
1
].
rgbBlue
)
);
}
PSDRV_WriteGSave
(
dev
);
PSDRV_WriteNewPath
(
dev
);
...
...
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