aboutsummaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index c179b0e..30d492f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -181,10 +181,8 @@ cairo_t *window_get_context(Window *win)
double window_get_scale(Window *win)
{
- // FIXME
- return 1;
-
- return MAX(1, win->con->screen_dpi / 96.0);
+ const int n = 4;
+ return MAX(1, floor((win->con->screen_dpi / 96.0) * n) * (1.0 / n));
}
void window_get_screen_size(Window *win, int *width, int *height)