|
@@ -341,7 +341,7 @@ void Window::run() { |
|
|
// Get desired scaling |
|
|
// Get desired scaling |
|
|
float pixelRatio; |
|
|
float pixelRatio; |
|
|
glfwGetWindowContentScale(win, &pixelRatio, NULL); |
|
|
glfwGetWindowContentScale(win, &pixelRatio, NULL); |
|
|
pixelRatio = std::floor(pixelRatio + 0.25); |
|
|
|
|
|
|
|
|
pixelRatio = std::floor(pixelRatio + 0.5); |
|
|
if (pixelRatio != this->pixelRatio) { |
|
|
if (pixelRatio != this->pixelRatio) { |
|
|
APP->event->handleZoom(); |
|
|
APP->event->handleZoom(); |
|
|
this->pixelRatio = pixelRatio; |
|
|
this->pixelRatio = pixelRatio; |
|
|