[PrefsManager, X11Helper] Added ShowMouseCursor preference.
This commit is contained in:
@@ -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 ),
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user