[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
+1
View File
@@ -174,6 +174,7 @@ PrefsManager::PrefsManager() :
m_bAllowMultitexture ( "AllowMultitexture", true ),
m_bShowStats ( "ShowStats", TRUE_IF_DEBUG),
m_bShowBanners ( "ShowBanners", true ),
m_bShowMouseCursor ( "ShowMouseCursor", true ),
m_bHiddenSongs ( "HiddenSongs", false ),
m_bVsync ( "Vsync", true ),
+1
View File
@@ -169,6 +169,7 @@ public:
Preference<bool> m_bAllowMultitexture;
Preference<bool> m_bShowStats;
Preference<bool> m_bShowBanners;
Preference<bool> m_bShowMouseCursor;
Preference<bool> m_bHiddenSongs;
Preference<bool> m_bVsync;
+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 );