X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.c;h=e3e70397b36b4241f4240b2c318d10449151a97e;hb=c5dbea494cdfaf301cc12246fea54557c7bc4f21;hp=02fc24062c5d8760fe21a995a2b2c89a68f31b0d;hpb=f1605e99959acfb32b36ae875601fc14dd670742;p=16.git diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 02fc2406..e3e70397 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -314,7 +314,7 @@ void modexDrawBmpRegion(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 far *data = bmp->data;//+bmp->offset; word bmpOffset = (word) data + ry * bmp->width + rx; word width = rw; word height = rh; @@ -325,6 +325,10 @@ modexDrawBmpRegion(page_t *page, int x, int y, word rowCounter; byte planeCounter = 4; +/* printf("bmp->data=%Fp\n",bmp->data); + printf("*bmp->data=%Fp\n",*(bmp->data)); + printf("&bmp->data=%Fp\n",&(bmp->data));*/ + //code is a bit slow here __asm { MOV AX, SCREEN_SEG ; go to the VGA memory