Commit d65f49a0 authored by Hidenori Takeshima's avatar Hidenori Takeshima Committed by Alexandre Julliard

Fixed bugs in processing DELTA.

parent 7af9098f
...@@ -47,6 +47,7 @@ static LONG MSRLE32_DecompressRLE8( ...@@ -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( ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment