mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +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 x,y;
|
||||
LONG delta_x,delta_y;
|
||||
int len;
|
||||
UINT data;
|
||||
|
||||
@ -70,7 +71,11 @@ static LONG MSRLE32_DecompressRLE8(
|
||||
case 1: /* END */
|
||||
return ICERR_OK;
|
||||
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;
|
||||
default: /* RAW */
|
||||
len = data;
|
||||
|
Loading…
Reference in New Issue
Block a user