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
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