]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/modex16.c
added initial version of 192x144
[16.git] / src / lib / modex16.c
index 3e0e9ec37341c9a32bba903abdf0a7c9d9454272..cd56390b3a5fcf7c95275cc75086dc44078ce60c 100755 (executable)
@@ -588,7 +588,7 @@ void
 modexDrawSpriteRegion(page_t *page, int x, int y,\r
                       int rx, int ry, int rw, int rh, bitmap_t *bmp) {\r
     word poffset = (word)page->data + y*(page->width/4) + x/4;\r
-    byte *data = bmp->data;//+bmp->offset;\r
+    byte huge *data = bmp->data;//+bmp->offset;\r
     word bmpOffset = (word) data + ry * bmp->width + rx;\r
     word width = rw;\r
     word height = rh;\r
@@ -616,8 +616,7 @@ modexDrawSpriteRegion(page_t *page, int x, int y,
                 MOV AX, height          ; start the row counter\r
                 MOV rowCounter, AX      ;\r
                 MOV DI, poffset         ; go to the first pixel\r
-//                MOV SI, bmpOffset       ; go to the bmp pixel\r
-                MOV DI, bmpOffset       ; go to the bmp pixel\r
+                MOV SI, bmpOffset       ; go to the bmp pixel\r
         ROW_LOOP:\r
                 MOV CX, width           ; count the columns\r
         SCAN_LOOP:\r