Fixed an issue with NinePatchComponent scaling on 1920x1200 displays.

This commit is contained in:
Leon Styhre 2021-01-14 00:09:23 +01:00
parent ace0366479
commit 82896f01fb
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -72,7 +72,7 @@ void NinePatchComponent::buildVertices()
if (mIsScalable) {
texSize = Vector2f(static_cast<float>(mTexture->getSize().x()) *
Renderer::getScreenWidthModifier(), static_cast<float>(mTexture->getSize().y()) *
Renderer::getScreenHeightModifier());
Renderer::getScreenWidthModifier());
mTexture->rasterizeAt(static_cast<size_t>(texSize.x()), static_cast<size_t>(texSize.y()));
}
else {