]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_vl.c
p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I...
[16.git] / src / lib / 16_vl.c
index 833a75a6f8f116c6c0fca834e49bc2988f4d52db..514e7d4d97e6d860e857654f196b73781ecbfea0 100755 (executable)
@@ -55,6 +55,10 @@ void VGAmodeX(sword vq, boolean cmem, global_game_variables_t *gv)
                default: // init the video\r
                        if(gv->video.VL_Started)\r
                                return;\r
+                       // get old video mode\r
+                       //in.h.ah = 0xf;\r
+                       //int86(0x10, &in, &out);\r
+                       gv->video.old_mode = vgaGetMode();//out.h.al;\r
                        // enter mode\r
                        modexEnter(vq, cmem, gv);\r
                break;\r
@@ -175,39 +179,6 @@ modexLeave() {
        vgaSetMode(TEXT_MODE);\r
 }\r
 \r
-/*\r
-====================\r
-=\r
-= VL_SetLineWidth\r
-=\r
-= Line witdh is in WORDS, 40 words is normal width for vgaplanegr\r
-=\r
-====================\r
-*/\r
-\r
-void VL_SetLineWidth (unsigned width, ofs_t *ofs)\r
-{\r
-       int i,offset;\r
-\r
-//\r
-// set wide virtual screen\r
-//\r
-       outport (CRTC_INDEX,CRTC_OFFSET+width*256);\r
-\r
-//\r
-// set up lookup tables\r
-//\r
-       ofs->linewidth = width*2;\r
-\r
-       offset = 0;\r
-\r
-       for (i=0;i<MAXSCANLINES;i++)\r
-       {\r
-               ofs->ylookup[i]=offset;\r
-               offset += ofs->linewidth;\r
-       }\r
-}\r
-\r
 page_t\r
 modexDefaultPage(page_t *p)\r
 {\r