From 58af36d3092222530057d4ae7e1ea160c30beb5c Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 10 Nov 2015 13:25:18 -0600 Subject: [PATCH] hmmm let me see what i did before wwww --- src/lib/modex16/16render.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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; -- 2.39.5