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
fb02ee91
Commit
fb02ee91
authored
Feb 20, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed end-of-line bug in X11DRV_DIB_SetImageBits_RLE4.
parent
b1752281
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dib.c
graphics/x11drv/dib.c
+4
-4
No files found.
graphics/x11drv/dib.c
View file @
fb02ee91
...
...
@@ -357,20 +357,20 @@ static void X11DRV_DIB_SetImageBits_RLE4( int lines, const BYTE *bits,
if
(
length
)
{
/* encoded */
c
=
*
bits
++
;
while
(
length
--
)
{
XPutPixel
(
bmpImage
,
x
++
,
lines
,
colors
[
c
>>
4
]);
if
(
x
>=
width
)
{
x
=
0
;
if
(
--
lines
<
0
)
return
;
}
XPutPixel
(
bmpImage
,
x
++
,
lines
,
colors
[
c
>>
4
]);
if
(
length
)
{
length
--
;
XPutPixel
(
bmpImage
,
x
++
,
lines
,
colors
[
c
&
0xf
]);
if
(
x
>=
width
)
{
x
=
0
;
if
(
--
lines
<
0
)
return
;
}
XPutPixel
(
bmpImage
,
x
++
,
lines
,
colors
[
c
&
0xf
]);
}
}
}
else
{
...
...
@@ -396,20 +396,20 @@ static void X11DRV_DIB_SetImageBits_RLE4( int lines, const BYTE *bits,
default:
/* absolute */
while
(
length
--
)
{
c
=
*
bits
++
;
XPutPixel
(
bmpImage
,
x
++
,
lines
,
colors
[
c
>>
4
]);
if
(
x
>=
width
)
{
x
=
0
;
if
(
--
lines
<
0
)
return
;
}
XPutPixel
(
bmpImage
,
x
++
,
lines
,
colors
[
c
>>
4
]);
if
(
length
)
{
length
--
;
XPutPixel
(
bmpImage
,
x
++
,
lines
,
colors
[
c
&
0xf
]);
if
(
x
>=
width
)
{
x
=
0
;
if
(
--
lines
<
0
)
return
;
}
XPutPixel
(
bmpImage
,
x
++
,
lines
,
colors
[
c
&
0xf
]);
}
}
if
((
bits
-
begin
)
&
1
)
...
...
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