mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
Some minor code cleanup.
This commit is contained in:
parent
87e6837980
commit
adaec71f5b
|
@ -515,7 +515,7 @@ void GuiMenu::openSoundSettings()
|
|||
setVolume(static_cast<int>(std::round(system_volume->getValue())));
|
||||
// Explicitly delete the VolumeControl instance so that it will reinitialize the
|
||||
// next time the menu is entered. This is the easiest way to detect new default
|
||||
// audio devices or changes in audio volume done by the operating system.
|
||||
// audio devices or changes to the audio volume done by the operating system.
|
||||
VolumeControl::getInstance()->deleteInstance();
|
||||
});
|
||||
#endif
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
int SDL_USER_CECBUTTONDOWN = -1;
|
||||
int SDL_USER_CECBUTTONUP = -1;
|
||||
|
||||
InputManager* InputManager::mInstance = nullptr;
|
||||
InputManager* InputManager::sInstance = nullptr;
|
||||
|
||||
InputManager::InputManager() : mKeyboardInputConfig(nullptr)
|
||||
{
|
||||
|
@ -56,10 +56,10 @@ InputManager::~InputManager()
|
|||
|
||||
InputManager* InputManager::getInstance()
|
||||
{
|
||||
if (!mInstance)
|
||||
mInstance = new InputManager();
|
||||
if (!sInstance)
|
||||
sInstance = new InputManager();
|
||||
|
||||
return mInstance;
|
||||
return sInstance;
|
||||
}
|
||||
|
||||
void InputManager::init()
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
private:
|
||||
InputManager();
|
||||
|
||||
static InputManager* mInstance;
|
||||
static InputManager* sInstance;
|
||||
|
||||
static const int DEADZONE = 23000;
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ namespace Renderer
|
|||
LOG(LogInfo) << "Creating window...";
|
||||
|
||||
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
|
||||
LOG(LogError) << "Couldn't initialize SDL: " << SDL_GetError() << ".";
|
||||
LOG(LogError) << "Couldn't initialize SDL: " << SDL_GetError();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue