[Scummvm-git-logs] scummvm master -> 85509bd42889744e42069117c211e928c21ad1b2
lephilousophe
noreply at scummvm.org
Sat Jun 22 09:52:40 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
85509bd428 ANDROID: Use float constants
Commit: 85509bd42889744e42069117c211e928c21ad1b2
https://github.com/scummvm/scummvm/commit/85509bd42889744e42069117c211e928c21ad1b2
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-06-22T11:52:21+02:00
Commit Message:
ANDROID: Use float constants
This avoids promotion to double
Changed paths:
backends/graphics/android/android-graphics.cpp
backends/graphics3d/android/android-graphics3d.cpp
diff --git a/backends/graphics/android/android-graphics.cpp b/backends/graphics/android/android-graphics.cpp
index 2199551e1a4..f65e963bcd3 100644
--- a/backends/graphics/android/android-graphics.cpp
+++ b/backends/graphics/android/android-graphics.cpp
@@ -215,7 +215,7 @@ float AndroidGraphicsManager::getHiDPIScreenFactor() const {
JNI::getDPI(dpi);
// Scale down the Android factor else the GUI is too big and
// there is not much options to go smaller
- return dpi[2] / 1.2;
+ return dpi[2] / 1.2f;
}
bool AndroidGraphicsManager::loadVideoMode(uint requestedWidth, uint requestedHeight, const Graphics::PixelFormat &format) {
diff --git a/backends/graphics3d/android/android-graphics3d.cpp b/backends/graphics3d/android/android-graphics3d.cpp
index f9aa9fb1cfd..bd4a2435255 100644
--- a/backends/graphics3d/android/android-graphics3d.cpp
+++ b/backends/graphics3d/android/android-graphics3d.cpp
@@ -1073,7 +1073,7 @@ float AndroidGraphics3dManager::getHiDPIScreenFactor() const {
JNI::getDPI(dpi);
// Scale down the Android factor else the GUI is too big and
// there is not much options to go smaller
- return dpi[2] / 1.2;
+ return dpi[2] / 1.2f;
}
AndroidCommonGraphics::State AndroidGraphics3dManager::getState() const {
More information about the Scummvm-git-logs
mailing list