Thursday 21 January 2016

mouse.h Attachment

#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;
}

No comments:

Post a Comment

How to install google-chrome in redhat without redhat subscription

Install google-chrome in redhat  Download the .rpm file of chrome https://www.google.com/chrome/thank-you.html?installdataindex=empty&st...