mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 05:25:45 -04:00
Android: Add MSAA to enhancements
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include "common/file_system.h"
|
||||
#include "common/log.h"
|
||||
#include "common/string.h"
|
||||
#include "common/string_util.h"
|
||||
#include "common/timestamp.h"
|
||||
#include "core/bios.h"
|
||||
#include "core/cheats.h"
|
||||
@ -162,11 +163,20 @@ void AndroidHostInterface::SetUserDirectory()
|
||||
|
||||
void AndroidHostInterface::LoadSettings()
|
||||
{
|
||||
CommonHostInterface::LoadSettings(m_settings_interface);
|
||||
LoadAndConvertSettings();
|
||||
CommonHostInterface::FixIncompatibleSettings(false);
|
||||
CommonHostInterface::UpdateInputMap(m_settings_interface);
|
||||
}
|
||||
|
||||
void AndroidHostInterface::LoadAndConvertSettings()
|
||||
{
|
||||
CommonHostInterface::LoadSettings(m_settings_interface);
|
||||
|
||||
const std::string msaa_str = m_settings_interface.GetStringValue("GPU", "MSAA", "1");
|
||||
g_settings.gpu_multisamples = std::max<u32>(StringUtil::FromChars<u32>(msaa_str).value_or(1), 1);
|
||||
g_settings.gpu_per_sample_shading = StringUtil::EndsWith(msaa_str, "-ssaa");
|
||||
}
|
||||
|
||||
void AndroidHostInterface::UpdateInputMap()
|
||||
{
|
||||
CommonHostInterface::UpdateInputMap(m_settings_interface);
|
||||
@ -538,7 +548,7 @@ void AndroidHostInterface::RefreshGameList(bool invalidate_cache, bool invalidat
|
||||
void AndroidHostInterface::ApplySettings(bool display_osd_messages)
|
||||
{
|
||||
Settings old_settings = std::move(g_settings);
|
||||
CommonHostInterface::LoadSettings(m_settings_interface);
|
||||
LoadAndConvertSettings();
|
||||
CommonHostInterface::FixIncompatibleSettings(display_osd_messages);
|
||||
|
||||
// Defer renderer changes, the app really doesn't like it.
|
||||
|
@ -73,6 +73,8 @@ private:
|
||||
void CreateImGuiContext();
|
||||
void DestroyImGuiContext();
|
||||
|
||||
void LoadAndConvertSettings();
|
||||
|
||||
jobject m_java_object = {};
|
||||
jobject m_emulation_activity_object = {};
|
||||
|
||||
|
Reference in New Issue
Block a user