#include<dos.h>
#include<graphics.h>
union REGS i,o;
void border(int l)
{
for(int i=0;i<l;i++)
{
setcolor(i);
rectangle(0+i,0+i,getmaxx()-i,getmaxy()-i);
}
}
void init()
{
i.x.ax = 0;
int86(0x33,&i,&o);
}
void show()
{
i.x.ax = 1;
int86(0x33,&i,&o);
}
void hide()
{
i.x.ax = 2;
int86(0x33,&i,&o);
}
void show_ptr(int *x,int *y,int *b)
{
i.x.ax = 3;
int86(0x33,&i,&o);
*x = o.x.cx;
*y = o.x.dx;
*b = o.x.bx;
}
#include<graphics.h>
union REGS i,o;
void border(int l)
{
for(int i=0;i<l;i++)
{
setcolor(i);
rectangle(0+i,0+i,getmaxx()-i,getmaxy()-i);
}
}
void init()
{
i.x.ax = 0;
int86(0x33,&i,&o);
}
void show()
{
i.x.ax = 1;
int86(0x33,&i,&o);
}
void hide()
{
i.x.ax = 2;
int86(0x33,&i,&o);
}
void show_ptr(int *x,int *y,int *b)
{
i.x.ax = 3;
int86(0x33,&i,&o);
*x = o.x.cx;
*y = o.x.dx;
*b = o.x.bx;
}
No comments:
Post a Comment