]> 4ch.mooo.com Git - 16.git/commitdiff
IT WORKS!!!! trying to devug set_vga_modex
authorsparky4 <sparky4@cock.li>
Thu, 19 Nov 2015 22:05:11 +0000 (16:05 -0600)
committersparky4 <sparky4@cock.li>
Thu, 19 Nov 2015 22:05:11 +0000 (16:05 -0600)
src/lib/modex/demos/c/w.sh [new file with mode: 0755]
src/lib/modex/demos/c/x-demo.c
src/lib/modex/demos/c/x-demo.exe

diff --git a/src/lib/modex/demos/c/w.sh b/src/lib/modex/demos/c/w.sh
new file mode 100755 (executable)
index 0000000..0e10733
--- /dev/null
@@ -0,0 +1,2 @@
+#! /bin/bash
+wmake clean;wmake
index 2d0621ee1ee73257f3f53da45fc92252dce9ddcd..249cbbd7a7c306f8b16face9d172b4eb7f5178de 100755 (executable)
@@ -503,12 +503,12 @@ int       r, d;
 void page_demo ()\r
 {\r
 \r
-char   *Error1 = "Failure during SET_VGA_MODEX (0, 360, 240, 3) call";\r
+char   *Error1 = "Failure during SET_VGA_MODEX (4, 320, 240, 2) call";\r
 \r
 int            Last_Objects[2], Visible_Objects;\r
 \r
-int            Screen_X = 384;\r
-int            Screen_Y = 672;\r
+int            Screen_X = 352;\r
+int            Screen_Y = 544;\r
 \r
 int            x, y, z;\r
 int            c, dc;\r
@@ -524,10 +524,12 @@ int               Set_Color, Prev_Color, S_Dir, P_Dir;
 int            Demo_Running = True;\r
 int            redo, code;\r
 \r
-       if (set_vga_modex(Mode_320x200, Screen_X, Screen_Y, 3) == 0)\r
+       if (set_vga_modex(Mode_320x240, Screen_X, Screen_Y, 2) == 0)\r
        {\r
-               error_out (Error1);\r
+               set_modex (Mode_320x240);\r
+               //error_out (Error1);\r
        }\r
+       //set_vga_modex(Mode_320x240, Screen_X, Screen_Y, 2);\r
 \r
        set_active_page (0);\r
        clear_vga_screen (c_BLACK);\r
index efe6262243e0d6aa2ee9209c3530fec4c4c6fa96..093be3b39120adb39dcc3433cf98fdcb98b7d723 100755 (executable)
Binary files a/src/lib/modex/demos/c/x-demo.exe and b/src/lib/modex/demos/c/x-demo.exe differ