From 0886df77769bd1f0fd94c19b37adeec3f1906973 Mon Sep 17 00:00:00 2001 From: emb <> Date: Fri, 2 Jan 2015 10:41:23 -0600 Subject: [PATCH] Improving image scale quality. Removed debug print. --- Source/RetroFE.cpp | 1 - Source/SDL.cpp | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/RetroFE.cpp b/Source/RetroFE.cpp index a6a7210..4bf6c63 100644 --- a/Source/RetroFE.cpp +++ b/Source/RetroFE.cpp @@ -49,7 +49,6 @@ void RetroFE::Render() { page->Draw(); } - Logger::Write(Logger::ZONE_ERROR, "Component", "DRAW"); SDL_RenderPresent(SDL::GetRenderer()); SDL_UnlockMutex(SDL::GetMutex()); diff --git a/Source/SDL.cpp b/Source/SDL.cpp index b34d5bb..836a234 100644 --- a/Source/SDL.cpp +++ b/Source/SDL.cpp @@ -160,6 +160,11 @@ bool SDL::Initialize(Configuration &config) } } + if(SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1") != SDL_TRUE) + { + Logger::Write(Logger::ZONE_ERROR, "SDL", "Improve scale quality. Continuing with low-quality settings."); + } + if(retVal) { Mutex = SDL_CreateMutex();