X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.c;h=cd56390b3a5fcf7c95275cc75086dc44078ce60c;hb=415ffb75c84f777d2ce7e3501079823aa544d63f;hp=3e0e9ec37341c9a32bba903abdf0a7c9d9454272;hpb=516c01e6ea6ac9bf49faba2485e8a99ba6d48340;p=16.git diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 3e0e9ec3..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,8 +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 SI, bmpOffset ; go to the bmp 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: