[PrefsManager, X11Helper] Added ShowMouseCursor preference.
This commit is contained in:
@@ -8,6 +8,10 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 $next | 2011????
|
StepMania 5.0 $next | 2011????
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/08/22
|
||||||
|
----------
|
||||||
|
* [PrefsManager, X11Helper] Added ShowMouseCursor preference. [AJ]
|
||||||
|
|
||||||
2011/08/21
|
2011/08/21
|
||||||
----------
|
----------
|
||||||
* [NotesLoaderSSC] Fix loading pre-split timing files that had blank timing
|
* [NotesLoaderSSC] Fix loading pre-split timing files that had blank timing
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ PrefsManager::PrefsManager() :
|
|||||||
m_bAllowMultitexture ( "AllowMultitexture", true ),
|
m_bAllowMultitexture ( "AllowMultitexture", true ),
|
||||||
m_bShowStats ( "ShowStats", TRUE_IF_DEBUG),
|
m_bShowStats ( "ShowStats", TRUE_IF_DEBUG),
|
||||||
m_bShowBanners ( "ShowBanners", true ),
|
m_bShowBanners ( "ShowBanners", true ),
|
||||||
|
m_bShowMouseCursor ( "ShowMouseCursor", true ),
|
||||||
|
|
||||||
m_bHiddenSongs ( "HiddenSongs", false ),
|
m_bHiddenSongs ( "HiddenSongs", false ),
|
||||||
m_bVsync ( "Vsync", true ),
|
m_bVsync ( "Vsync", true ),
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ public:
|
|||||||
Preference<bool> m_bAllowMultitexture;
|
Preference<bool> m_bAllowMultitexture;
|
||||||
Preference<bool> m_bShowStats;
|
Preference<bool> m_bShowStats;
|
||||||
Preference<bool> m_bShowBanners;
|
Preference<bool> m_bShowBanners;
|
||||||
|
Preference<bool> m_bShowMouseCursor;
|
||||||
|
|
||||||
Preference<bool> m_bHiddenSongs;
|
Preference<bool> m_bHiddenSongs;
|
||||||
Preference<bool> m_bVsync;
|
Preference<bool> m_bVsync;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "X11Helper.h"
|
#include "X11Helper.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
#include "PrefsManager.h" // XXX: only used for m_bShowMouseCursor -aj
|
||||||
|
|
||||||
Display *X11Helper::Dpy = NULL;
|
Display *X11Helper::Dpy = NULL;
|
||||||
Window X11Helper::Win = None;
|
Window X11Helper::Win = None;
|
||||||
@@ -62,6 +63,7 @@ bool X11Helper::MakeWindow( Window &win, int screenNum, int depth, Visual *visua
|
|||||||
|
|
||||||
/* Hide the mouse cursor. */
|
/* Hide the mouse cursor. */
|
||||||
// todo: we only want to do this in certain situations (e.g. an arcade) -aj
|
// 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 };
|
const char pBlank[] = { 0,0,0,0,0,0,0,0 };
|
||||||
Pixmap BlankBitmap = XCreateBitmapFromData( Dpy, win, pBlank, 8, 8 );
|
Pixmap BlankBitmap = XCreateBitmapFromData( Dpy, win, pBlank, 8, 8 );
|
||||||
|
|||||||
Reference in New Issue
Block a user