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
d456f99a
Commit
d456f99a
authored
Nov 22, 2009
by
Charles Davis
Committed by
Alexandre Julliard
Nov 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/enhmfdrv: Don't fill in the PelsPerMeter fields in the BITMAPINFOHEADER when blitting.
parent
1bd13dec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
bitblt.c
dlls/gdi32/enhmfdrv/bitblt.c
+2
-4
No files found.
dlls/gdi32/enhmfdrv/bitblt.c
View file @
d456f99a
...
@@ -149,10 +149,8 @@ static BOOL EMFDRV_BitBlockTransfer(
...
@@ -149,10 +149,8 @@ static BOOL EMFDRV_BitBlockTransfer(
/* Assume the bitmap isn't compressed and set the BI_RGB flag. */
/* Assume the bitmap isn't compressed and set the BI_RGB flag. */
lpBmiH
->
biCompression
=
BI_RGB
;
lpBmiH
->
biCompression
=
BI_RGB
;
lpBmiH
->
biSizeImage
=
bitsSize
;
lpBmiH
->
biSizeImage
=
bitsSize
;
lpBmiH
->
biYPelsPerMeter
=
/* 1 meter = 39.37 inch */
lpBmiH
->
biYPelsPerMeter
=
0
;
MulDiv
(
GetDeviceCaps
(
physDevSrc
->
hdc
,
LOGPIXELSX
),
3937
,
100
);
lpBmiH
->
biXPelsPerMeter
=
0
;
lpBmiH
->
biXPelsPerMeter
=
MulDiv
(
GetDeviceCaps
(
physDevSrc
->
hdc
,
LOGPIXELSY
),
3937
,
100
);
lpBmiH
->
biClrUsed
=
nBPP
<=
8
?
1
<<
nBPP
:
0
;
lpBmiH
->
biClrUsed
=
nBPP
<=
8
?
1
<<
nBPP
:
0
;
/* Set biClrImportant to 0, indicating that all of the
/* Set biClrImportant to 0, indicating that all of the
device colors are important. */
device colors are important. */
...
...
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