mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Render GUI correctly on retina screens (#834)
This commit is contained in:
committed by
Alexander Bock
parent
1d50a88fc0
commit
6a6db9aa78
@@ -194,7 +194,10 @@ void CefWebGuiModule::internalInitialize(const ghoul::Dictionary& configuration)
|
||||
|
||||
if (isGuiWindow && isMaster && _instance) {
|
||||
if (global::windowDelegate.windowHasResized()) {
|
||||
_instance->reshape(global::windowDelegate.currentWindowSize());
|
||||
_instance->reshape(static_cast<glm::ivec2>(
|
||||
static_cast<glm::vec2>(global::windowDelegate.currentWindowSize()) *
|
||||
global::windowDelegate.dpiScaling()
|
||||
));
|
||||
}
|
||||
if (_visible) {
|
||||
_instance->draw();
|
||||
|
||||
Reference in New Issue
Block a user