From: sparky4 Date: Tue, 10 Nov 2015 19:25:18 +0000 (-0600) Subject: hmmm let me see what i did before wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=58af36d3092222530057d4ae7e1ea160c30beb5c;p=16.git hmmm let me see what i did before wwww --- diff --git a/src/lib/modex16/16render.c b/src/lib/modex16/16render.c index 0a6298bc..d5a31e93 100755 --- a/src/lib/modex16/16render.c +++ b/src/lib/modex16/16render.c @@ -287,7 +287,7 @@ void modexDrawBmpPBufRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, planar_buf_t *bmp) { word poffset = (word) page->data + y*(page->width/4) + x/4; - byte *data = *bmp->plane;//+bmp->offset; + byte *data = *bmp->plane[0];//+bmp->offset; word bmpOffset = (word) data + ry * bmp->width + rx; word width = rw; word height = rh; @@ -319,7 +319,17 @@ modexDrawBmpPBufRegion(page_t *page, int x, int y, ROW_LOOP: MOV CX, width ; count the columns SCAN_LOOP: + + + + + + + + + MOVSB ; copy the pixel + SUB CX, 3 ; we skip the next 3 ADD SI, 3 ; skip the bmp pixels LOOP SCAN_LOOP ; finish the scan @@ -332,6 +342,7 @@ modexDrawBmpPBufRegion(page_t *page, int x, int y, DEC rowCounter JNZ ROW_LOOP ; do all the rows ;-- end plane painting + MOV AL, plane ; advance to the next plane SHL AL, 1 ; AND AL, 0x0f ; mask the plane properly @@ -354,7 +365,7 @@ void modexDrawSpritePBufRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, planar_buf_t *bmp) { word poffset = (word)page->data + y*(page->width/4) + x/4; - byte *data = *bmp->plane;//+bmp->offset; + byte *data = *bmp->plane[0];//+bmp->offset; word bmpOffset = (word) data + ry * bmp->width + rx; word width = rw; word height = rh;