mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 01:41:29 -06:00
added loading screen fix for hdpi
This commit is contained in:
@@ -159,7 +159,7 @@ void LoadingScreen::render() {
|
||||
|
||||
const glm::vec2 dpiScaling = global::windowDelegate.dpiScaling();
|
||||
const glm::ivec2 res =
|
||||
glm::vec2(global::windowDelegate.currentSubwindowSize()) / dpiScaling;
|
||||
glm::vec2(global::windowDelegate.currentSubwindowSize()) * dpiScaling;
|
||||
|
||||
float screenAspectRatio = static_cast<float>(res.x) / static_cast<float>(res.y);
|
||||
|
||||
@@ -310,7 +310,6 @@ void LoadingScreen::render() {
|
||||
ProgressbarCenter.y + progressbarSize.y
|
||||
};
|
||||
|
||||
|
||||
for (Item& item : _items) {
|
||||
if (!item.hasLocation) {
|
||||
// Compute a new location
|
||||
|
||||
Reference in New Issue
Block a user