-//DOS Graphics thingy by sparky4 licence GPL v2
-//a special thanks to everyone to release source code for mode X
+//DOS Graphics thingy by sparky4 licence GPL v2\r
+//a special thanks to everyone to release source code for mode X\r
/*src\lib\*/\r
#include "dos_gfx.h"\r
\r
int q = 0;\r
int bakax = 0, bakay = 0;\r
cord xx = rand()&0%320, yy = rand()&0%240, sx = 0, sy = 0;\r
-byte coor;
-
+byte coor;\r
+\r
byte *vga = (byte *) MK_FP(0xA000, 0);\r
\r
/*\r
}\r
}else{\r
if(!bakax){\r
-// xx-=TILEWH;\r
- xx--;\r
+ xx-=TILEWH;\r
+// xx--;\r
}else if(bakax>1){\r
-// xx+=TILEWH;\r
- xx++;\r
+ xx+=TILEWH;\r
+// xx++;\r
}\r
if(!bakay){\r
-// yy-=TILEWH;\r
- yy--;\r
+ yy-=TILEWH;\r
+// yy--;\r
}else if(bakay>1){\r
-// yy+=TILEWH;\r
- yy++;\r
+ yy+=TILEWH;\r
+// yy++;\r
}\r
}\r
}\r
\r
// plot the pixel\r
}else{\r
-// mxFillBox(xx, yy, TILEWH, TILEWH, coor, 0);\r
- mxPutPixel(xx, yy, coor);\r
+ mxFillBox(xx, yy, TILEWH, TILEWH, coor, 0);\r
+// mxPutPixel(xx, yy, coor);\r
} \r
\r
if(q==2) mxPutPixel(rand()%SW, rand()%(SH*3), 0);\r
d=1; // switch variable\r
key=4; // default screensaver number\r
xpos=0;\r
- ypos=0;
+ ypos=0;\r
xdir=1;\r
ydir=1;\r
setvideo(1);\r
{\r
mxPutPixel(0, y, 15);\r
mxPutPixel(SW-1, y, 15);\r
- }
+ }\r
\r
- getch();
+ getch();\r
for (int x = 320; x < VW; ++x)\r
{\r
mxPutPixel(x, 0, 15);\r
{\r
mxPutPixel(0, y, 15);\r
mxPutPixel(VW-1, y, 15);\r
- }
+ }\r
+ mxSetTextColor(16, OP_TRANS);\r
+ mxOutText(64, SH-40, "CRAZY!!!!");\r
+ mxOutText(64, SH-32, "CRAZY!!!!");\r
+ mxOutText(64, SH-24, " _ CRAZY!!!!");\r
+ mxOutText(64, SH-16, " _ _ CRAZY!!!!");\r
getch();\r
while(!kbhit()){\r
// hScroll(1);\r
// delay(100);\r
//for(int i=0;i<TILEWH;i++){\r
ding(key);\r
+ mxOutText(64, SH-40, "CRAZY!!!!");\r
+ mxOutText(64, SH-32, "CRAZY!!!!");\r
+ mxOutText(64, SH-24, " _ CRAZY!!!!");\r
+ mxOutText(64, SH-16, " _ _ CRAZY!!!!");\r
mxPan(xpos,ypos);\r
//mxWaitRetrace();\r
xpos+=xdir;\r