From cf92decff4ef57161032df5c26eb45ce564839c3 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 16 Aug 2013 21:41:40 -0700 Subject: [PATCH 1/3] Fix new UI at 1x resolution. --- Core/Core.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Core/Core.cpp b/Core/Core.cpp index fa1eb8d40f..cb5b365a71 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -95,17 +95,19 @@ void Core_WaitInactive(int milliseconds) void UpdateScreenScale() { dp_xres = PSP_CoreParameter().pixelWidth; dp_yres = PSP_CoreParameter().pixelHeight; + pixel_xres = PSP_CoreParameter().pixelWidth; + pixel_yres = PSP_CoreParameter().pixelHeight; + g_dpi = 72; + g_dpi_scale = 1.0f; #ifdef _WIN32 if (g_Config.iWindowZoom == 1) { dp_xres *= 2; dp_yres *= 2; + g_dpi_scale = 2.0f; } + else #endif - pixel_xres = PSP_CoreParameter().pixelWidth; - pixel_yres = PSP_CoreParameter().pixelHeight; - g_dpi = 72; - g_dpi_scale = 1.0f; pixel_in_dps = (float)pixel_xres / dp_xres; } From 39d4359294945cc830aec0210f941a02584737a2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 16 Aug 2013 21:47:50 -0700 Subject: [PATCH 2/3] Get rid of "How to get games" when you have games. --- UI/MainScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 071fa928e6..7411ad6663 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -382,7 +382,7 @@ void GameBrowser::Refresh() { b->OnHoldClick.Handle(this, &GameBrowser::GameButtonHoldClick); } - if (!lastText_.empty()) { + if (!lastText_.empty() && gameButtons.empty()) { Add(new Spacer()); Add(new Choice(lastText_, new UI::LinearLayoutParams(UI::WRAP_CONTENT, UI::WRAP_CONTENT)))->OnClick.Handle(this, &GameBrowser::LastClick); } From b79e3f4714840a7662f42e24c7bc2d7af13fcf55 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 16 Aug 2013 21:59:28 -0700 Subject: [PATCH 3/3] Start with a more sane default directory. --- UI/NativeApp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index f979fc527e..3ad0a6c851 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -360,6 +360,9 @@ void NativeInit(int argc, const char *argv[], logman->SetLogLevel(LogTypes::G3D, LogTypes::LERROR); INFO_LOG(BOOT, "Logger inited."); #else + if (g_Config.currentDirectory.empty()) { + g_Config.currentDirectory = File::GetExeDirectory(); + } g_Config.memCardDirectory = "MemStick/"; #endif