Mail Archives: djgpp/2000/11/22/03:44:34
On Mon, 20 Nov 2000, Gorden wrote:
> Why I cant not changce mouse cursor in bios graphics, and I post my source
> My problem is why I can not regist my new mouse cursor, in main() function
[snip]
> /* register my new mouse cursor */
> r.x.ax = 0x0009;
> r.x.bx = 0;
> r.x.cx = 0;
> r.x.dx = (int) mouse_cursor; /* problem in here */
> r.x.es = _my_cs(); /* problem in here */
> __dpmi_int(0x33, &r);
You need to copy the cursor data into the transfer buffer, and then put
the segment:offset of the transfer buffer into ES:DX above. See section
18.2 of the DJGPP FAQ list for more explanations and an example.
- Raw text -