]> 4ch.mooo.com Git - 16.git/commitdiff
there that should fix wwww
authorsparky4 <sparky4@cock.li>
Fri, 24 Jul 2015 23:18:05 +0000 (18:18 -0500)
committersparky4 <sparky4@cock.li>
Fri, 24 Jul 2015 23:18:05 +0000 (18:18 -0500)
modified:   16.exe
modified:   16.hed
modified:   bakapi.exe
modified:   fontgfx.exe
modified:   maptest.exe
modified:   palettec.exe
modified:   pcxtest.exe
modified:   scroll.exe
modified:   src/lib/modex16.c
modified:   test.exe
modified:   test2.exe

16.exe
16.hed
bakapi.exe
fontgfx.exe
maptest.exe
palettec.exe
pcxtest.exe
scroll.exe
src/lib/modex16.c
test.exe
test2.exe

diff --git a/16.exe b/16.exe
index 1d6be61bdb079cdf0d9ed689ca069bfa75ad1770..9a8dee24f46cf99a8e5e5fdeaf86e5a40016c93c 100644 (file)
Binary files a/16.exe and b/16.exe differ
diff --git a/16.hed b/16.hed
index f138c24b9b9152b8569a5c11dfb70cefe4418a4c..3d5d9947c18d518a326e669426498454c79541aa 100644 (file)
Binary files a/16.hed and b/16.hed differ
index 4feb24163e7542a0f6b72ccb656cbeb4fb307170..ce446b395252a5de1364aedfea85b9cd5588a7ba 100644 (file)
Binary files a/bakapi.exe and b/bakapi.exe differ
index 633fbcac1da478fcccf92bca05b23db469d865fd..364eb3706d50ff24f60af8848eedff120948b9f9 100644 (file)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index bd0d285281175a072347d82735e8ec8213879dee..331c71474081f7d91d354c6a8e8dc6fa430eeeaa 100644 (file)
Binary files a/maptest.exe and b/maptest.exe differ
index 7cf347c9313f47a034a621f7e13bb1a7c37e518c..8d7c203a3924e6fe463adbd14592f664e2458fa1 100644 (file)
Binary files a/palettec.exe and b/palettec.exe differ
index 3490160171380fc045c89ab835887a2e85bcf48b..95d0fbb91b285bd62bf0346597370d1fcb42992d 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 49eb80da641948bbb8dab64657b398e9b1a18fa7..cb599321ebab2b83ea221d828d3f4d46910f2e26 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index a0ffccb4b9f29e8acc25208507311f059bea6cc7..e5550b4c130f4a969a514d6df63c9f2393d35988 100644 (file)
@@ -44,17 +44,17 @@ void VGAmodeX(sword vq)
        { // deinit the video
                // change to the video mode we were in before we switched to mode 13h
                modexLeave();
-               //in.h.ah = 0x00;
-               //in.h.al = old_mode;
-               //int86(0x10, &in, &out);
+               in.h.ah = 0x00;
+               in.h.al = old_mode;
+               int86(0x10, &in, &out);
 
        }
        else if(vq==1)
        { // init the video
                // get old video mode
-               //in.h.ah = 0xf;
-               //int86(0x10, &in, &out);
-               //old_mode = out.h.al;
+               in.h.ah = 0xf;
+               int86(0x10, &in, &out);
+               old_mode = out.h.al;
                // enter mode
                modexEnter();
        }
@@ -984,7 +984,7 @@ void modexputPixel(page_t *page, int x, int y, byte color)
           offset = (width * y + x) / 4, and write the given\r
           color to the plane we selected above.  Heed the active\r
           page start selection. */\r
-       VGA[(unsigned)((SCREEN_WIDTH/4) * y) + (x / 4) + pageOff] = color;\r
+       VGA[(unsigned)((page->width/4) * y) + (x / 4) + pageOff] = color;\r
 \r
 }\r
 \r
@@ -995,7 +995,7 @@ byte modexgetPixel(page_t *page, int x, int y)
        outpw(GC_INDEX, 0x04);\r
        outpw(GC_INDEX+1, x & 3);\r
 \r
-       return VGA[(unsigned)((SCREEN_WIDTH/4) * y) + (x / 4) + pageOff];\r
+       return VGA[(unsigned)((page->width/4) * y) + (x / 4) + pageOff];\r
 \r
 }
 
index 030e3f27cfcf6fe3f940440b4f8c408b40a980de..03c18ca0aa7c003815513bc5c954562f51021d80 100644 (file)
Binary files a/test.exe and b/test.exe differ
index af316409c44682cd4a427bf2dcb79a931f0ffdbe..0680286f53c5eafc0f82f69677c41070ae90a308 100644 (file)
Binary files a/test2.exe and b/test2.exe differ