]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/DOS_GFX.EXE
authorsparky4 <sparky4@4ch.maidlab.jp>
Mon, 19 May 2014 11:12:46 +0000 (06:12 -0500)
committersparky4 <sparky4@4ch.maidlab.jp>
Mon, 19 May 2014 11:12:46 +0000 (06:12 -0500)
modified:   16/dos_gfx.cpp

16/DOS_GFX.EXE
16/dos_gfx.cpp

index 066444717eb4c60ee74a65079d11af7dc3747563..f7e5dd4fd6852caf8e49577c662e8aba94ebdf2c 100644 (file)
Binary files a/16/DOS_GFX.EXE and b/16/DOS_GFX.EXE differ
index 1a033c879b02ab17c26c28df71e3b79e0f8dce58..79de22fadae6289bdb430f16558e70cb0e06da43 100644 (file)
@@ -311,28 +311,30 @@ void vScroll(int rows)
        setVisibleStart(visStart + (rows * width));\r
 }\r
 \r
-void scrolly(int bong)\r
+void scrolly(int bongy)\r
 {\r
-       int boing=0;\r
-       if(bong<0)\r
-               boing=-1;\r
-       else if(bong>0)\r
-               boing=1;\r
+       int boingy=0;\r
+       if(bongy<0)\r
+               boingy=-1;\r
+       else if(bongy>0)\r
+               boingy=1;\r
 \r
        for(int ti=0;ti<TILEWH;ti++)\r
-               //delay(100);\r
-               vScroll(boing);\r
+       {\r
+               delay(1);\r
+               vScroll(boingy);\r
+       }\r
 }\r
 \r
 //king_crimson's code\r
-void hScroll(int Cols) {
+void hScroll(int Cols) {\r
        inp(0x3DA);\r
        outp(0x3C0, 0x13);\r
        outp(0x3C0, Cols & 3);\r
        outp(0x3D4, 0x13);\r
-       outp(0x3D5, Cols >> 2);
-       setVisibleStart(visStart + (Cols * height));
-       //setVisibleStart(visStart + (Cols * width));\r
+       outp(0x3D5, Cols/* >> 2*/);\r
+       //setVisibleStart(visStart + (Cols * height));\r
+       setVisibleStart(visStart + (Cols * width));\r
 }\r
 \r
 /*To implement smooth horizontal scrolling, you would do the following:\r
@@ -817,19 +819,20 @@ int main(void)
                        ding(4);\r
                }\r
                //end of screen savers\r
-//             doTest();
+//             doTest();\r
                getch();\r
 \r
                while(!kbhit()){ // conditions of screen saver\r
                        hScroll(1);\r
-                       //delay(1000);\r
+                       scrolly(1);\r
+                       delay(100);\r
                }\r
 //++++0000\r
                setvideo(0);\r
 //mxTerm();\r
 //mxGetVersion();\r
                puts("Where to next?  It's your move! wwww");\r
-               printf("bakapi ver. 1.04.09.02\nis made by sparky4\81i\81\86\83Ö\81\85\81j feel free to use it ^^\nLicence: GPL v2\n");\r
+               printf("bakapi ver. 1.04.09.03\nis made by sparky4\81i\81\86\83Ö\81\85\81j feel free to use it ^^\nLicence: GPL v2\n");\r
                return 0;\r
                }\r
 \r