From 82896f01fbb82eaa87b715502bf806d986d4019f Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 14 Jan 2021 00:09:23 +0100 Subject: [PATCH] Fixed an issue with NinePatchComponent scaling on 1920x1200 displays. --- CHANGELOG.md | 2 +- es-core/src/components/NinePatchComponent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d43970015..cad8a691a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ Many bugs have been fixed, and numerous features that were only partially implem * Added volume sliders for navigation sounds and game videos to the sound settings menu * Added support for OpenGL GLSL shaders (OpenGL 2.1 renderer only, no support for OpenGL ES 1.0 renderer) * Added multiple animations and shader effects, such as when opening menus, playing videos in the gamelists and via the screensaver etc. -* Updated the application to work properly on high resolution devices (such as 4K) +* Updated the application to work properly on high resolution devices (such as 4K monitors) * Seamless (almost) launch of games without showing the desktop when starting and returning from RetroArch and other emulators * Updated scraper to support additional media files, detailed configuration of what to scrape, semi-automatic mode etc. * Added user account support when scraping using ScreenScraper diff --git a/es-core/src/components/NinePatchComponent.cpp b/es-core/src/components/NinePatchComponent.cpp index 02bb1aaac..286df43bf 100644 --- a/es-core/src/components/NinePatchComponent.cpp +++ b/es-core/src/components/NinePatchComponent.cpp @@ -72,7 +72,7 @@ void NinePatchComponent::buildVertices() if (mIsScalable) { texSize = Vector2f(static_cast(mTexture->getSize().x()) * Renderer::getScreenWidthModifier(), static_cast(mTexture->getSize().y()) * - Renderer::getScreenHeightModifier()); + Renderer::getScreenWidthModifier()); mTexture->rasterizeAt(static_cast(texSize.x()), static_cast(texSize.y())); } else {