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
331cb13b
Commit
331cb13b
authored
Jan 02, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msrle32: Get rid of no longer needed lDist argument in MSRLE32_CompressRLE8Line.
parent
cb767f73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
msrle32.c
dlls/msrle32/msrle32.c
+5
-6
No files found.
dlls/msrle32/msrle32.c
View file @
331cb13b
...
...
@@ -456,8 +456,7 @@ static INT MSRLE32_CompressRLE4Line(const CodecInfo *pi, const WORD *lpP,
static
INT
MSRLE32_CompressRLE8Line
(
const
CodecInfo
*
pi
,
const
WORD
*
lpP
,
const
WORD
*
lpC
,
LPCBITMAPINFOHEADER
lpbi
,
const
BYTE
*
lpIn
,
LONG
lDist
,
INT
x
,
LPBYTE
*
ppOut
,
const
BYTE
*
lpIn
,
INT
x
,
LPBYTE
*
ppOut
,
DWORD
*
lpSizeImage
)
{
LPBYTE
lpOut
=
*
ppOut
;
...
...
@@ -471,13 +470,13 @@ static INT MSRLE32_CompressRLE8Line(const CodecInfo *pi, const WORD *lpP,
pos
=
x
;
clr
=
lpC
[
pos
++
];
for
(
count
=
1
;
pos
<
lpbi
->
biWidth
;
count
++
)
{
if
(
ColorCmp
(
clr
,
lpC
[
pos
++
])
>
lDist
)
if
(
ColorCmp
(
clr
,
lpC
[
pos
++
])
>
0
)
break
;
}
if
(
count
<
2
)
{
/* add some more pixels for absoluting if possible */
count
+=
countDiffRLE8
(
lpP
,
lpC
-
1
,
lpC
,
pos
-
1
,
lDist
,
lpbi
->
biWidth
);
count
+=
countDiffRLE8
(
lpP
,
lpC
-
1
,
lpC
,
pos
-
1
,
0
,
lpbi
->
biWidth
);
assert
(
count
>
0
);
...
...
@@ -719,7 +718,7 @@ LRESULT MSRLE32_CompressRLE8(const CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
x
=
0
;
do
{
x
=
MSRLE32_CompressRLE8Line
(
pi
,
NULL
,
lpC
,
lpbiIn
,
lpIn
,
0
,
x
,
x
=
MSRLE32_CompressRLE8Line
(
pi
,
NULL
,
lpC
,
lpbiIn
,
lpIn
,
x
,
&
lpOut
,
&
lpbiOut
->
biSizeImage
);
assert
(
lpOut
==
(
lpOutStart
+
lpbiOut
->
biSizeImage
));
}
while
(
x
<
lpbiOut
->
biWidth
);
...
...
@@ -801,7 +800,7 @@ LRESULT MSRLE32_CompressRLE8(const CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
if
(
x
<
lpbiOut
->
biWidth
)
{
/* skip the 'same' things corresponding to previous frame */
x
=
MSRLE32_CompressRLE8Line
(
pi
,
lpP
,
lpC
,
lpbiIn
,
lpIn
,
0
,
x
,
x
=
MSRLE32_CompressRLE8Line
(
pi
,
lpP
,
lpC
,
lpbiIn
,
lpIn
,
x
,
&
lpOut
,
&
lpbiOut
->
biSizeImage
);
assert
(
lpOut
==
(
lpOutStart
+
lpbiOut
->
biSizeImage
));
}
...
...
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