diff options
author | yokota <yokota@FreeBSD.org> | 1999-11-08 11:37:46 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-11-08 11:37:46 +0000 |
commit | 5b90185d7f6229e8275354d49c936845932f68e9 (patch) | |
tree | 2fd4989fd857b909af28670ef7714168fdbf0cea /lib/libvgl/mouse.c | |
parent | 6b891b634b32d132848bd61a4f23bbdfe8013306 (diff) | |
download | FreeBSD-src-5b90185d7f6229e8275354d49c936845932f68e9.zip FreeBSD-src-5b90185d7f6229e8275354d49c936845932f68e9.tar.gz |
- This is the new version of libvgl jointly developed by sos and I.
It adds new functions and extend some structures and can handle
VESA modes.
- Update the man page.
- Bump the library version number.
(The old version will be added to compat3x.)
Diffstat (limited to 'lib/libvgl/mouse.c')
-rw-r--r-- | lib/libvgl/mouse.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libvgl/mouse.c b/lib/libvgl/mouse.c index a5ded2f..390ec6c 100644 --- a/lib/libvgl/mouse.c +++ b/lib/libvgl/mouse.c @@ -35,9 +35,6 @@ #include <machine/console.h> #include "vgl.h" -/* prototype for internal function */ -int __VGLBitmapCopy(VGLBitmap *src, int srcx, int srcy, VGLBitmap *dst, int dstx, int dsty, int width, int hight); - #define X 0xff static byte StdAndMask[MOUSE_IMG_SIZE*MOUSE_IMG_SIZE] = { X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -77,12 +74,13 @@ static byte StdOrMask[MOUSE_IMG_SIZE*MOUSE_IMG_SIZE] = { }; #undef X static VGLBitmap VGLMouseStdAndMask = - { MEMBUF, MOUSE_IMG_SIZE, MOUSE_IMG_SIZE, StdAndMask }; + VGLBITMAP_INITIALIZER(MEMBUF, MOUSE_IMG_SIZE, MOUSE_IMG_SIZE, StdAndMask); static VGLBitmap VGLMouseStdOrMask = - { MEMBUF, MOUSE_IMG_SIZE, MOUSE_IMG_SIZE, StdOrMask }; + VGLBITMAP_INITIALIZER(MEMBUF, MOUSE_IMG_SIZE, MOUSE_IMG_SIZE, StdOrMask); static VGLBitmap *VGLMouseAndMask, *VGLMouseOrMask; static byte map[MOUSE_IMG_SIZE*MOUSE_IMG_SIZE]; -static VGLBitmap VGLMouseSave = { MEMBUF, MOUSE_IMG_SIZE, MOUSE_IMG_SIZE, map}; +static VGLBitmap VGLMouseSave = + VGLBITMAP_INITIALIZER(MEMBUF, MOUSE_IMG_SIZE, MOUSE_IMG_SIZE, map); static int VGLMouseVisible = 0; static int VGLMouseFrozen = 0; static int VGLMouseShown = 0; @@ -94,7 +92,8 @@ void VGLMousePointerShow() { byte buf[MOUSE_IMG_SIZE*MOUSE_IMG_SIZE]; - VGLBitmap buffer = { MEMBUF, MOUSE_IMG_SIZE, MOUSE_IMG_SIZE, buf }; + VGLBitmap buffer = + VGLBITMAP_INITIALIZER(MEMBUF, MOUSE_IMG_SIZE, MOUSE_IMG_SIZE, buf); byte crtcidx, crtcval, gdcidx, gdcval; int pos; |