2016-01-27 09:11:59 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
bool CNotificationSettings::m_bInFullScreen = false;
|
|
|
|
|
|
|
|
CNotificationSettings::CNotificationSettings()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CNotificationSettings::~CNotificationSettings()
|
|
|
|
{
|
|
|
|
if (g_Settings)
|
|
|
|
{
|
2016-04-13 07:34:19 +00:00
|
|
|
g_Settings->UnregisterChangeCB((SettingID)(FirstUISettings + UserInterface_InFullScreen), this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
2016-01-27 09:11:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CNotificationSettings::RegisterNotifications()
|
|
|
|
{
|
2016-04-13 07:34:19 +00:00
|
|
|
g_Settings->RegisterChangeCB((SettingID)(FirstUISettings + UserInterface_InFullScreen), this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
2016-01-27 09:11:59 +00:00
|
|
|
RefreshSettings();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CNotificationSettings::RefreshSettings()
|
|
|
|
{
|
2016-04-13 07:34:19 +00:00
|
|
|
m_bInFullScreen = UISettingsLoadBool(UserInterface_InFullScreen);
|
2015-11-14 21:07:53 +00:00
|
|
|
}
|