Fixed bugs in processing DELTA.

This commit is contained in:
Hidenori Takeshima 2002-02-19 18:26:54 +00:00 committed by Alexandre Julliard
parent 7af9098f6b
commit d65f49a041

View File

@ -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;