projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33e494
)
Fixed unnecessary casts in freerdp_image_copy.
author
Armin Novak
<armin.novak@thincast.com>
Thu, 21 Feb 2019 15:32:19 +0000
(16:32 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Fri, 5 Apr 2019 07:14:35 +0000
(09:14 +0200)
libfreerdp/codec/color.c
patch
|
blob
|
history
diff --git
a/libfreerdp/codec/color.c
b/libfreerdp/codec/color.c
index
37a2283
..
8a5e371
100644
(file)
--- a/
libfreerdp/codec/color.c
+++ b/
libfreerdp/codec/color.c
@@
-523,9
+523,9
@@
BOOL freerdp_image_copy(BYTE* pDstData, DWORD DstFormat,
}
else
{
- INT32 x, y;
+
U
INT32 x, y;
- for (y = 0; y <
(INT32)
nHeight; y++)
+ for (y = 0; y < nHeight; y++)
{
const BYTE* srcLine = &pSrcData[(y + nYSrc) *
nSrcStep * srcVMultiplier +
@@
-533,7
+533,7
@@
BOOL freerdp_image_copy(BYTE* pDstData, DWORD DstFormat,
BYTE* dstLine = &pDstData[(y + nYDst) *
nDstStep * dstVMultiplier + dstVOffset];
- for (x = 0; x <
(INT32)
nWidth; x++)
+ for (x = 0; x < nWidth; x++)
{
UINT32 dstColor;
UINT32 color = ReadColor(&srcLine[(x + nXSrc) * srcByte],