]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/modex16.c
0.c is under study wwww
[16.git] / src / lib / modex16.c
index ff9bf43a305615a7db9fb9d9ef01c09d99262d7b..94386cad2b154d27d6a0e60faa0ce27bfed23704 100755 (executable)
@@ -249,7 +249,7 @@ modexNextPageFlexibleSize(page_t *p, word x, word y)
        result.tilesw=result.width/TILEWH;\r
        result.tilesh=result.height/TILEWH;\r
        result.id = p->id+1;\r
-       result.stridew=p->stridew;//result.width/4;\r
+       result.stridew=p->sw/4;//result.width/4;\r
        result.pagesize = (word)(result.width/4)*result.height;\r
        switch(result.id)\r
        {\r
@@ -313,14 +313,14 @@ modexShowPage(page_t *page) {
     low_address  = LOW_ADDRESS  | (offset << 8);\r
 \r
     /* wait for appropriate timing and then program CRTC */\r
-    while ((inp(INPUT_STATUS_1) & DISPLAY_ENABLE));\r
+    //while ((inp(INPUT_STATUS_1) & DISPLAY_ENABLE));\r
     outpw(CRTC_INDEX, high_address);\r
     outpw(CRTC_INDEX, low_address);\r
     outp(CRTC_INDEX, 0x13);\r
     outp(CRTC_DATA, crtcOffset);\r
 \r
     /*  wait for one retrace */\r
-    while (!(inp(INPUT_STATUS_1) & VRETRACE));\r
+    //while (!(inp(INPUT_STATUS_1) & VRETRACE));\r
 \r
     /* do PEL panning here */\r
     outp(AC_INDEX, 0x33);\r