From: viscous liquid (viscous_liquid@yahoo.com)
Date: Mon 24 Apr 2000 - 08:44:03 IDT
> I also added mouse cursor support. A short > explanation: > the added functions are > vga_initcursor(force_software) - must be called > first. A non zero > number will force svgalib to use software cursor, > even if > hardware is supported. > vga_showcursor(show) - use 0 to hide, 1 to show, 2 > to hide only if > software cursor, and 3 to deisplay only if software > cursor. > The reason for 2 and 3 is that drawing over a > software cursor is > not allowed, so if you draw to the screen where the > cursor might > be, you need to hide the cursor if it is a software > cursor, but > not if it is ahardware cursor. > vga_setcursorposition(x,y). > vga_selectcursor(num) - Select which of the 16 > available cursors to > display. > vga_setcursorimage(num, type, col0, col1, unsigned > long *image) - set > the image of cursor num (<16) to he image pointed > to. Currently > only type 0 is supported, which means the cursor is > 32x32, the > image is 32 words (one per line) of the cursor > image, followed > by 32 words of the mask (same rules as X11 cursors: > mask=0 is > background, mask=1 is image). col0 and col1 are > 24bit numbers > representing RGB colors. > > The software cursor functions are unoptimized, I'll > be glad if someone > who wrote better cursor functions can adapt them for > this method, and > send to me a patch. Just started to play with 1.9.4 and these functions are not defined in vgamouse.h, is this a mistake on my part installing the new lib, i.e. old headers were not removed? Daniel Smith viscous_liquid@yahoo.com __________________________________________________ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.yahoo.com
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST