X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.c;h=cd56390b3a5fcf7c95275cc75086dc44078ce60c;hb=415ffb75c84f777d2ce7e3501079823aa544d63f;hp=798c9aee620d301092c95943d350f0570097abed;hpb=17be56acf6a4d9c44762ea85bc6998955525e864;p=16.git diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 798c9aee..cd56390b 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -588,7 +588,7 @@ void modexDrawSpriteRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, bitmap_t *bmp) { word poffset = (word)page->data + y*(page->width/4) + x/4; - byte *data = bmp->data;//+bmp->offset; + byte huge *data = bmp->data;//+bmp->offset; word bmpOffset = (word) data + ry * bmp->width + rx; word width = rw; word height = rh; @@ -616,7 +616,7 @@ modexDrawSpriteRegion(page_t *page, int x, int y, MOV AX, height ; start the row counter MOV rowCounter, AX ; MOV DI, poffset ; go to the first pixel - MOV DI, bmpOffset ; go to the bmp pixel + MOV SI, bmpOffset ; go to the bmp pixel ROW_LOOP: MOV CX, width ; count the columns SCAN_LOOP: