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
e175445e
Commit
e175445e
authored
Dec 25, 1999
by
Huw D M Davies
Committed by
Alexandre Julliard
Dec 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PSDRV_StretchDIBits for non-integer byte src widths (1 & 4bpp).
parent
bac7be75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
bitmap.c
graphics/psdrv/bitmap.c
+6
-6
No files found.
graphics/psdrv/bitmap.c
View file @
e175445e
...
...
@@ -93,8 +93,8 @@ static BOOL PSDRV_WriteImageHeader(DC *dc, const BITMAPINFO *info, INT xDst,
* PSDRV_StretchDIBits
*
* BUGS
* Doesn't work correctly if
the DIB bits aren't byte aligned at the start of
*
a line - this affects 1 and 4
bit depths.
* Doesn't work correctly if
xSrc isn't byte aligned - this affects 1 and 4
* bit depths.
* Compression not implemented.
*/
INT
PSDRV_StretchDIBits
(
DC
*
dc
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
...
...
@@ -138,10 +138,10 @@ INT PSDRV_StretchDIBits( DC *dc, INT xDst, INT yDst, INT widthDst,
widthSrc
,
heightSrc
);
ptr
=
bits
;
ptr
+=
(
ySrc
*
widthbytes
);
if
(
xSrc
&
7
||
widthSrc
&
7
)
if
(
xSrc
&
7
)
FIXME
(
"This won't work...
\n
"
);
for
(
line
=
0
;
line
<
heightSrc
;
line
++
,
ptr
+=
widthbytes
)
PSDRV_WriteBytes
(
dc
,
ptr
+
xSrc
/
8
,
widthSrc
/
8
);
PSDRV_WriteBytes
(
dc
,
ptr
+
xSrc
/
8
,
(
widthSrc
+
7
)
/
8
);
break
;
case
4
:
...
...
@@ -150,10 +150,10 @@ INT PSDRV_StretchDIBits( DC *dc, INT xDst, INT yDst, INT widthDst,
widthSrc
,
heightSrc
);
ptr
=
bits
;
ptr
+=
(
ySrc
*
widthbytes
);
if
(
xSrc
&
1
||
widthSrc
&
1
)
if
(
xSrc
&
1
)
FIXME
(
"This won't work...
\n
"
);
for
(
line
=
0
;
line
<
heightSrc
;
line
++
,
ptr
+=
widthbytes
)
PSDRV_WriteBytes
(
dc
,
ptr
+
xSrc
/
2
,
widthSrc
/
2
);
PSDRV_WriteBytes
(
dc
,
ptr
+
xSrc
/
2
,
(
widthSrc
+
1
)
/
2
);
break
;
case
8
:
...
...
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