home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR3
/
MOUSE256.ZIP
/
READ.ME
< prev
next >
Wrap
Text File
|
1993-11-21
|
2KB
|
26 lines
In Fastgraph's XVGA and SVGA 256-color graphics modes (modes 20 to 27), it's
possible to create multicolored mouse cursors. Before doing this, though,
it's important to understand how two mouse data structures -- the SCREEN MASK
and the CURSOR MASK -- behave. Information on these two data structures may
be found on pages 339 to 343 of the Fastgraph User's Guide.
Normally the screen and cursor masks are expressed as 16-element word arrays,
with each bit corresponding to one pixel. Each mask thus represents a 16x16
grid of pixels, which of course is the size of the mouse cursor in graphics
modes. In modes 20 to 27, Fastgraph expands these masks into a more
efficient internal format so the mouse cursor can be displayed as quickly as
possible. The expanded masks are stored in a 512-byte array referenced by
the public symbol VGApairs, structured as 256 alternating screen and cursor
mask bytes. You can define a multicolored mouse cursor by storing
appropriate values in the VGApairs array.
This distribution includes an assembly language function named SETMOUSE that
stores a properly formatted screen and cursor mask array directly into the
VGApairs array. An example C program that calls SETMOUSE is also presented.
The files in this distribution are:
READ.ME This file
SETMOUSE.ASM Assembly function to access VGApairs array
MOUSE256.C Example source code that calls SETMOUSE
MOUSE256.EXE Compiled example of MOUSE256.C