mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
Fixed bugs in processing DELTA.
This commit is contained in:
parent
7af9098f6b
commit
d65f49a041
@ -47,6 +47,7 @@ static LONG MSRLE32_DecompressRLE8(
|
|||||||
LONG width, LONG height )
|
LONG width, LONG height )
|
||||||
{
|
{
|
||||||
LONG x,y;
|
LONG x,y;
|
||||||
|
LONG delta_x,delta_y;
|
||||||
int len;
|
int len;
|
||||||
UINT data;
|
UINT data;
|
||||||
|
|
||||||
@ -70,7 +71,11 @@ static LONG MSRLE32_DecompressRLE8(
|
|||||||
case 1: /* END */
|
case 1: /* END */
|
||||||
return ICERR_OK;
|
return ICERR_OK;
|
||||||
case 2: /* DELTA */
|
case 2: /* DELTA */
|
||||||
x += (LONG)*pSrc++; y += (LONG)*pSrc++;
|
delta_x = (LONG)*pSrc++;
|
||||||
|
delta_y = (LONG)*pSrc++;
|
||||||
|
x += delta_x;
|
||||||
|
y += delta_y;
|
||||||
|
pDst += delta_y * pitch + delta_x;
|
||||||
break;
|
break;
|
||||||
default: /* RAW */
|
default: /* RAW */
|
||||||
len = data;
|
len = data;
|
||||||
|
Loading…
Reference in New Issue
Block a user