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
bfb41db3
Commit
bfb41db3
authored
Nov 04, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Set the mono color map in BitBlt also for the initial PutImage attempt.
parent
278899d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
bitblt.c
dlls/gdi32/bitblt.c
+16
-16
No files found.
dlls/gdi32/bitblt.c
View file @
bfb41db3
...
...
@@ -244,27 +244,27 @@ BOOL nulldrv_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
release_dc_ptr
(
dc_src
);
if
(
err
)
return
FALSE
;
/* 1-bpp source without a color table uses the destination DC colors */
if
(
src_info
->
bmiHeader
.
biBitCount
==
1
&&
!
src_info
->
bmiHeader
.
biClrUsed
)
{
COLORREF
color
=
GetTextColor
(
dst_dev
->
hdc
);
src_info
->
bmiColors
[
0
].
rgbRed
=
GetRValue
(
color
);
src_info
->
bmiColors
[
0
].
rgbGreen
=
GetGValue
(
color
);
src_info
->
bmiColors
[
0
].
rgbBlue
=
GetBValue
(
color
);
src_info
->
bmiColors
[
0
].
rgbReserved
=
0
;
color
=
GetBkColor
(
dst_dev
->
hdc
);
src_info
->
bmiColors
[
1
].
rgbRed
=
GetRValue
(
color
);
src_info
->
bmiColors
[
1
].
rgbGreen
=
GetGValue
(
color
);
src_info
->
bmiColors
[
1
].
rgbBlue
=
GetBValue
(
color
);
src_info
->
bmiColors
[
1
].
rgbReserved
=
0
;
src_info
->
bmiHeader
.
biClrUsed
=
2
;
}
dst_dev
=
GET_DC_PHYSDEV
(
dc_dst
,
pPutImage
);
copy_bitmapinfo
(
dst_info
,
src_info
);
err
=
dst_dev
->
funcs
->
pPutImage
(
dst_dev
,
0
,
0
,
dst_info
,
&
bits
,
src
,
dst
,
rop
);
if
(
err
==
ERROR_BAD_FORMAT
)
{
/* 1-bpp source without a color table uses the destination DC colors */
if
(
src_info
->
bmiHeader
.
biBitCount
==
1
&&
!
src_info
->
bmiHeader
.
biClrUsed
)
{
COLORREF
color
=
GetTextColor
(
dst_dev
->
hdc
);
src_info
->
bmiColors
[
0
].
rgbRed
=
GetRValue
(
color
);
src_info
->
bmiColors
[
0
].
rgbGreen
=
GetGValue
(
color
);
src_info
->
bmiColors
[
0
].
rgbBlue
=
GetBValue
(
color
);
src_info
->
bmiColors
[
0
].
rgbReserved
=
0
;
color
=
GetBkColor
(
dst_dev
->
hdc
);
src_info
->
bmiColors
[
1
].
rgbRed
=
GetRValue
(
color
);
src_info
->
bmiColors
[
1
].
rgbGreen
=
GetGValue
(
color
);
src_info
->
bmiColors
[
1
].
rgbBlue
=
GetBValue
(
color
);
src_info
->
bmiColors
[
1
].
rgbReserved
=
0
;
src_info
->
bmiHeader
.
biClrUsed
=
2
;
}
/* 1-bpp destination without a color table requires a fake 1-entry table
* that contains only the background color */
if
(
dst_info
->
bmiHeader
.
biBitCount
==
1
&&
!
dst_info
->
bmiHeader
.
biClrUsed
)
...
...
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