From: John Hodge Date: Wed, 25 Dec 2013 00:47:52 +0000 (+0800) Subject: Modules/VESA - Hide cursor when not LFB mode X-Git-Tag: rel0.15~39 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=774a7aa66f81b7bf2cb910e5fb0930436030413a;p=tpg%2Facess2.git Modules/VESA - Hide cursor when not LFB mode --- diff --git a/KernelLand/Modules/Display/VESA/main.c b/KernelLand/Modules/Display/VESA/main.c index 25616da2..51c80e1a 100644 --- a/KernelLand/Modules/Display/VESA/main.c +++ b/KernelLand/Modules/Display/VESA/main.c @@ -363,7 +363,8 @@ int Vesa_IOCtl(tVFS_Node *Node, int ID, void *Data) return 0; case VIDEO_IOCTL_SETCURSORBITMAP: - DrvUtil_Video_SetCursor( &gVesa_BufInfo, Data ); + if( gpVesaCurMode->flags & FLAG_LFB ) + DrvUtil_Video_SetCursor( &gVesa_BufInfo, Data ); return 0; } return 0; @@ -551,9 +552,9 @@ int Vesa_Int_ModeInfo(tVideo_IOCtl_Mode *data) void Vesa_int_HideCursor(void) { + DrvUtil_Video_RemoveCursor( &gVesa_BufInfo ); if( gpVesaCurMode->flags & FLAG_LFB ) { - DrvUtil_Video_RemoveCursor( &gVesa_BufInfo ); #if BLINKING_CURSOR if(gpVesaCursorTimer) { Time_RemoveTimer(gpVesaCursorTimer); @@ -585,6 +586,10 @@ void Vesa_int_ShowCursor(void) giVesaCursorY ); } + else + { + DrvUtil_Video_RemoveCursor( &gVesa_BufInfo ); + } } /**