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
57639774
Commit
57639774
authored
Nov 30, 2004
by
Huw Davies
Committed by
Alexandre Julliard
Nov 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For a 15/16 bpp dib we send RGB triples to the printer so the size
multiplier is 3 not 2.
parent
ca371a48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bitmap.c
dlls/wineps/bitmap.c
+2
-2
No files found.
dlls/wineps/bitmap.c
View file @
57639774
...
...
@@ -58,7 +58,7 @@ static BOOL get_bitmap_info( const void *ptr, LONG *width, LONG *height, WORD *b
{
case
sizeof
(
BITMAPCOREHEADER
):
{
const
BITMAPCOREHEADER
*
core
=
(
BITMAPCOREHEADER
*
)
header
;
const
BITMAPCOREHEADER
*
core
=
(
const
BITMAPCOREHEADER
*
)
header
;
*
width
=
core
->
bcWidth
;
*
height
=
core
->
bcHeight
;
*
bpp
=
core
->
bcBitCount
;
...
...
@@ -320,7 +320,7 @@ INT PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst, INT widthDs
src_ptr
=
bits
;
src_ptr
+=
(
ySrc
*
widthbytes
);
bitmap_size
=
heightSrc
*
widthSrc
*
2
;
bitmap_size
=
heightSrc
*
widthSrc
*
3
;
dst_ptr
=
bitmap
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bitmap_size
);
for
(
line
=
0
;
line
<
heightSrc
;
line
++
,
src_ptr
+=
widthbytes
)
{
...
...
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