summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-02-16 18:00:06 +0100
committerTimm Bäder <mail@baedert.org>2018-02-16 18:00:06 +0100
commitad776cc57bd3490a9881d4ab6ade972bef410f24 (patch)
treeab2b0154667bf9902e4a5fdb4a89f87fe01f49d8 /gsk
parent78c6f713ddf4cb756bd4c060d61f8b0153429928 (diff)
downloadgtk+-ad776cc57bd3490a9881d4ab6ade972bef410f24.tar.gz
gl renderer: Increase offscreen texture size
This fixes blurry checkbutton marks in hidpi setups, but breaks button hover effects. That's another problem.
Diffstat (limited to 'gsk')
-rw-r--r--gsk/gl/gskglrenderer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 51cd61ee0e..f72fdc3076 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2167,8 +2167,8 @@ add_offscreen_ops (GskGLRenderer *self,
gboolean *is_offscreen,
gboolean force_offscreen)
{
- const float width = max_x - min_x;
- const float height = max_y - min_y;
+ const float width = (max_x - min_x) * self->scale_factor;
+ const float height = (max_y - min_y) * self->scale_factor;
int render_target;
int prev_render_target;
RenderOp op;