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
2de54537
Commit
2de54537
authored
Jul 16, 2004
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed lvalue casts for new compiler.
parent
01bb8131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
msrle32.c
dlls/msrle32/msrle32.c
+16
-8
No files found.
dlls/msrle32/msrle32.c
View file @
2de54537
...
...
@@ -572,7 +572,8 @@ LRESULT MSRLE32_CompressRLE4(CodecInfo *pi, LPBITMAPINFOHEADER lpbiIn, LPBYTE lp
/* add EOL -- end of line */
lpbiOut
->
biSizeImage
+=
2
;
*
((
LPWORD
)
lpOut
)
++
=
0
;
*
(
LPWORD
)
lpOut
=
0
;
lpOut
+=
sizeof
(
WORD
);
assert
(
lpOut
==
(
lpOutStart
+
lpbiOut
->
biSizeImage
));
}
}
else
{
...
...
@@ -631,7 +632,8 @@ LRESULT MSRLE32_CompressRLE4(CodecInfo *pi, LPBITMAPINFOHEADER lpbiIn, LPBYTE lp
}
/* add EOL -- end of line */
lpbiOut
->
biSizeImage
+=
2
;
*
((
LPWORD
)
lpOut
)
++
=
0
;
*
((
LPWORD
)
lpOut
)
=
0
;
lpOut
+=
sizeof
(
WORD
);
}
/* FIXME: if (jumpy == 0 && could encode all) then jump too expensive */
...
...
@@ -669,14 +671,16 @@ LRESULT MSRLE32_CompressRLE4(CodecInfo *pi, LPBITMAPINFOHEADER lpbiIn, LPBYTE lp
/* add EOL -- end of line */
lpbiOut
->
biSizeImage
+=
2
;
*
((
LPWORD
)
lpOut
)
++
=
0
;
*
((
LPWORD
)
lpOut
)
=
0
;
lpOut
+=
sizeof
(
WORD
);
assert
(
lpOut
==
lpOutStart
+
lpbiOut
->
biSizeImage
);
}
}
/* add EOL -- will be changed to EOI */
lpbiOut
->
biSizeImage
+=
2
;
*
((
LPWORD
)
lpOut
)
++
=
0
;
*
((
LPWORD
)
lpOut
)
=
0
;
lpOut
+=
sizeof
(
WORD
);
}
/* change EOL to EOI -- end of image */
...
...
@@ -720,7 +724,8 @@ LRESULT MSRLE32_CompressRLE8(CodecInfo *pi, LPBITMAPINFOHEADER lpbiIn, LPBYTE lp
/* add EOL -- end of line */
lpbiOut
->
biSizeImage
+=
2
;
*
((
LPWORD
)
lpOut
)
++
=
0
;
*
((
LPWORD
)
lpOut
)
=
0
;
lpOut
+=
sizeof
(
WORD
);
assert
(
lpOut
==
(
lpOutStart
+
lpbiOut
->
biSizeImage
));
}
}
else
{
...
...
@@ -765,7 +770,8 @@ LRESULT MSRLE32_CompressRLE8(CodecInfo *pi, LPBITMAPINFOHEADER lpbiIn, LPBYTE lp
/* add EOL -- end of line */
lpbiOut
->
biSizeImage
+=
2
;
*
((
LPWORD
)
lpOut
)
++
=
0
;
*
((
LPWORD
)
lpOut
)
=
0
;
lpOut
+=
sizeof
(
WORD
);
assert
(
lpOut
==
(
lpOutStart
+
lpbiOut
->
biSizeImage
));
}
...
...
@@ -803,14 +809,16 @@ LRESULT MSRLE32_CompressRLE8(CodecInfo *pi, LPBITMAPINFOHEADER lpbiIn, LPBYTE lp
if
(
jumpy
==
0
)
{
/* add EOL -- end of line */
lpbiOut
->
biSizeImage
+=
2
;
*
((
LPWORD
)
lpOut
)
++
=
0
;
*
((
LPWORD
)
lpOut
)
=
0
;
lpOut
+=
sizeof
(
WORD
);
assert
(
lpOut
==
(
lpOutStart
+
lpbiOut
->
biSizeImage
));
}
}
/* add EOL -- will be changed to EOI */
lpbiOut
->
biSizeImage
+=
2
;
*
((
LPWORD
)
lpOut
)
++
=
0
;
*
((
LPWORD
)
lpOut
)
=
0
;
lpOut
+=
sizeof
(
WORD
);
}
/* change EOL to EOI -- end of image */
...
...
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