summaryrefslogtreecommitdiff
path: root/gsk/gl
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-04-01 22:52:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-04-02 09:22:56 -0400
commitfa58dd9256cfe5775718a311e1785ca3df46bddc (patch)
treed4369322cbbd4c9fa3782407a8630b2b22ba53f4 /gsk/gl
parent519cde95f0a02ab9ff9bc96bad89747a7bda6a3f (diff)
downloadgtk+-fa58dd9256cfe5775718a311e1785ca3df46bddc.tar.gz
Use fractional scale for the GL renderer
This commit combines changes in the Wayland backend, the GL context frontend, and the GL renderer to switch them all to use the fractional scale. In the Wayland backend, we now use the fractional scale to size the EGL window. In the GL frontend code, we use the fractional scale to scale the damage region and surface in begin/end_frame. And in the GL renderer, we replace gdk_surface_get_scale_factor() with gdk_surface_get_scale().
Diffstat (limited to 'gsk/gl')
-rw-r--r--gsk/gl/gskglrenderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index ffd3a0f27b..eb3c77c72f 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -288,7 +288,7 @@ gsk_gl_renderer_render (GskRenderer *renderer,
g_assert (root != NULL);
surface = gdk_draw_context_get_surface (GDK_DRAW_CONTEXT (self->context));
- scale = gdk_surface_get_scale_factor (surface);
+ scale = gdk_surface_get_scale (surface);
viewport.origin.x = 0;
viewport.origin.y = 0;