[Scummvm-tracker] [ScummVM :: Bugs] #11742: BACKENDS: Android - The UI appears somewhat blurry in high resolutions
ScummVM :: Bugs
trac at scummvm.org
Thu Oct 1 20:29:18 UTC 2020
#11742: BACKENDS: Android - The UI appears somewhat blurry in high resolutions
-------------------------+---------------------------
Reporter: antoniou79 | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Port: Android
Resolution: | Keywords: blurry, GUI
Game: |
-------------------------+---------------------------
Comment (by criezy):
The code change to respect the Filtered graphic option is as follow:
{{{
diff --git a/backends/graphics/opengl/opengl-graphics.cpp
b/backends/graphics/opengl/opengl-graphics.cpp
index 8af87abcc2..5a939995e5 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -124,6 +124,10 @@ void
OpenGLGraphicsManager::setFeatureState(OSystem::Feature f, bool enable) {
_cursor->enableLinearFiltering(enable);
}
+ if (_overlay) {
+ _overlay->enableLinearFiltering(enable);
+ }
+
break;
case OSystem::kFeatureCursorPalette:
@@ -961,7 +965,7 @@ void OpenGLGraphicsManager::handleResizeImpl(const int
width, const int height,
// We always filter the overlay with GL_LINEAR. This
assures it's
// readable in case it needs to be scaled and does not
affect it
// otherwise.
- _overlay->enableLinearFiltering(true);
+ _overlay->enableLinearFiltering(_currentState.filtering);
}
_overlay->allocate(overlayWidth, overlayHeight);
_overlay->fill(0);
}}}
For the screenshots I added a hack on lines 954 to set the overlay width
and hight to size smaller than the window (by applying a scaling factor <
1).
--
Ticket URL: <https://bugs.scummvm.org/ticket/11742#comment:9>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list