Browse Source

Round window content scale up if 1.5 or higher.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
30685db1b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/window.cpp

+ 1
- 1
src/window.cpp View File

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


Loading…
Cancel
Save