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
eed649a5
Commit
eed649a5
authored
Nov 18, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Nov 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Add support for top-down dibs.
parent
05472017
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
bitmap.c
dlls/wineps.drv/bitmap.c
+7
-0
No files found.
dlls/wineps.drv/bitmap.c
View file @
eed649a5
...
...
@@ -242,6 +242,7 @@ INT CDECL PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst, INT w
if
(
!
get_bitmap_info
(
info
,
&
fullSrcWidth
,
&
fullSrcHeight
,
&
bpp
,
&
compression
))
return
FALSE
;
stride
=
get_dib_width_bytes
(
fullSrcWidth
,
bpp
);
if
(
fullSrcHeight
<
0
)
stride
=
-
stride
;
/* top-down */
TRACE
(
"full size=%dx%d bpp=%d compression=%d rop=%08x
\n
"
,
fullSrcWidth
,
fullSrcHeight
,
bpp
,
compression
,
dwRop
);
...
...
@@ -272,6 +273,7 @@ INT CDECL PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst, INT w
PSDRV_WriteImageMaskHeader
(
physDev
,
info
,
xDst
,
yDst
,
widthDst
,
heightDst
,
widthSrc
,
heightSrc
);
src_ptr
=
bits
;
if
(
stride
<
0
)
src_ptr
+=
(
fullSrcHeight
+
1
)
*
stride
;
src_ptr
+=
(
ySrc
*
stride
);
if
(
xSrc
&
7
)
FIXME
(
"This won't work...
\n
"
);
...
...
@@ -287,6 +289,7 @@ INT CDECL PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst, INT w
PSDRV_WriteImageHeader
(
physDev
,
info
,
xDst
,
yDst
,
widthDst
,
heightDst
,
widthSrc
,
heightSrc
);
src_ptr
=
bits
;
if
(
stride
<
0
)
src_ptr
+=
(
fullSrcHeight
+
1
)
*
stride
;
src_ptr
+=
(
ySrc
*
stride
);
if
(
xSrc
&
1
)
FIXME
(
"This won't work...
\n
"
);
...
...
@@ -302,6 +305,7 @@ INT CDECL PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst, INT w
PSDRV_WriteImageHeader
(
physDev
,
info
,
xDst
,
yDst
,
widthDst
,
heightDst
,
widthSrc
,
heightSrc
);
src_ptr
=
bits
;
if
(
stride
<
0
)
src_ptr
+=
(
fullSrcHeight
+
1
)
*
stride
;
src_ptr
+=
(
ySrc
*
stride
);
bitmap_size
=
heightSrc
*
widthSrc
;
dst_ptr
=
bitmap
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bitmap_size
);
...
...
@@ -318,6 +322,7 @@ INT CDECL PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst, INT w
src_ptr
=
bits
;
if
(
stride
<
0
)
src_ptr
+=
(
fullSrcHeight
+
1
)
*
stride
;
src_ptr
+=
(
ySrc
*
stride
);
bitmap_size
=
heightSrc
*
widthSrc
*
3
;
dst_ptr
=
bitmap
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bitmap_size
);
...
...
@@ -350,6 +355,7 @@ INT CDECL PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst, INT w
widthSrc
,
heightSrc
);
src_ptr
=
bits
;
if
(
stride
<
0
)
src_ptr
+=
(
fullSrcHeight
+
1
)
*
stride
;
src_ptr
+=
(
ySrc
*
stride
);
bitmap_size
=
heightSrc
*
widthSrc
*
3
;
dst_ptr
=
bitmap
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bitmap_size
);
...
...
@@ -372,6 +378,7 @@ INT CDECL PSDRV_StretchDIBits( PSDRV_PDEVICE *physDev, INT xDst, INT yDst, INT w
widthSrc
,
heightSrc
);
src_ptr
=
bits
;
if
(
stride
<
0
)
src_ptr
+=
(
fullSrcHeight
+
1
)
*
stride
;
src_ptr
+=
(
ySrc
*
stride
);
bitmap_size
=
heightSrc
*
widthSrc
*
3
;
dst_ptr
=
bitmap
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bitmap_size
);
...
...
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