[PrefsManager, X11Helper] Added ShowMouseCursor preference.

This commit is contained in:
AJ Kelly
2011-08-22 04:07:52 -05:00
parent c7c622cfc2
commit cdb2235b84
4 changed files with 8 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
#include "global.h"
#include "X11Helper.h"
#include "RageLog.h"
#include "PrefsManager.h" // XXX: only used for m_bShowMouseCursor -aj
Display *X11Helper::Dpy = NULL;
Window X11Helper::Win = None;
@@ -62,6 +63,7 @@ bool X11Helper::MakeWindow( Window &win, int screenNum, int depth, Visual *visua
/* Hide the mouse cursor. */
// todo: we only want to do this in certain situations (e.g. an arcade) -aj
if( !PREFSMAN->m_bShowMouseCursor )
{
const char pBlank[] = { 0,0,0,0,0,0,0,0 };
Pixmap BlankBitmap = XCreateBitmapFromData( Dpy, win, pBlank, 8, 8 );