delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/17/05:46:44

From: "Gorden" <gorden AT ms9 DOT url DOT com DOT tw>
Newsgroups: comp.os.msdos.djgpp
Subject: about mouse cursor in bios graphics mode
Date: Fri, 17 Nov 2000 10:11:43 +0800
Organization: DCI HiNet
Lines: 36
Message-ID: <8v2412$d2v@netnews.hinet.net>
NNTP-Posting-Host: 210.242.228.137
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

/* my new mouse cursor */
int new_cursor[32] =
{
     0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
     0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
     0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
     0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF
};

int main()
{
    _dpmi_regs r;

    /* set video mode 640*480*16 */
    r.h.ah = 0;
    r.h.al = 0x12;
    __dpmi_int(0x10, &r);

    /* changce mouse cursor type */
     r.x.ax = 9;
     r.x.bx = 0;
     r.x.cx = 0;
     r.x.dx = (I do not know what is this ?)
     r.x.es  = (I do not know what is this ?)
     __dpmi_int(0x33, &r);
}

I have see sections 18.2 and 18.4 of the DJGPP FAQ list,
But I try it , failure

Please help me





- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019