From: sparky4 Date: Mon, 19 May 2014 11:12:46 +0000 (-0500) Subject: modified: 16/DOS_GFX.EXE X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=7d175b11552ccc85edd0f999e003b99846d4a3a8;p=16.git modified: 16/DOS_GFX.EXE modified: 16/dos_gfx.cpp --- diff --git a/16/DOS_GFX.EXE b/16/DOS_GFX.EXE index 06644471..f7e5dd4f 100644 Binary files a/16/DOS_GFX.EXE and b/16/DOS_GFX.EXE differ diff --git a/16/dos_gfx.cpp b/16/dos_gfx.cpp index 1a033c87..79de22fa 100644 --- a/16/dos_gfx.cpp +++ b/16/dos_gfx.cpp @@ -311,28 +311,30 @@ void vScroll(int rows) setVisibleStart(visStart + (rows * width)); } -void scrolly(int bong) +void scrolly(int bongy) { - int boing=0; - if(bong<0) - boing=-1; - else if(bong>0) - boing=1; + int boingy=0; + if(bongy<0) + boingy=-1; + else if(bongy>0) + boingy=1; for(int ti=0;ti> 2); - setVisibleStart(visStart + (Cols * height)); - //setVisibleStart(visStart + (Cols * width)); + outp(0x3D5, Cols/* >> 2*/); + //setVisibleStart(visStart + (Cols * height)); + setVisibleStart(visStart + (Cols * width)); } /*To implement smooth horizontal scrolling, you would do the following: @@ -817,19 +819,20 @@ int main(void) ding(4); } //end of screen savers -// doTest(); +// doTest(); getch(); while(!kbhit()){ // conditions of screen saver hScroll(1); - //delay(1000); + scrolly(1); + delay(100); } //++++0000 setvideo(0); //mxTerm(); //mxGetVersion(); puts("Where to next? It's your move! wwww"); - printf("bakapi ver. 1.04.09.02\nis made by sparky4i†ƒÖ…j feel free to use it ^^\nLicence: GPL v2\n"); + printf("bakapi ver. 1.04.09.03\nis made by sparky4i†ƒÖ…j feel free to use it ^^\nLicence: GPL v2\n"); return 0; }