summaryrefslogtreecommitdiff
path: root/gdk/gdkgl.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2014-12-15 21:54:11 +0100
committerAlexander Larsson <alexl@redhat.com>2014-12-15 21:57:02 +0100
commit4a4125bcfc252deecaab4547c891495b8e0ee5af (patch)
treee65a3e3ebc3da56bd69d2d77596254eb83e8c452 /gdk/gdkgl.c
parentff97f236c7686522516d2834b628f9b0b5842f4b (diff)
downloadgtk+-4a4125bcfc252deecaab4547c891495b8e0ee5af.tar.gz
gdk_cairo_draw_from_gl - fix drawing with alpha on window scale > 1
The scissoring needs to take into account the window scale.
Diffstat (limited to 'gdk/gdkgl.c')
-rw-r--r--gdk/gdkgl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c
index af47d8c45d..2c554bfa45 100644
--- a/gdk/gdkgl.c
+++ b/gdk/gdkgl.c
@@ -527,8 +527,8 @@ gdk_cairo_draw_from_gl (cairo_t *cr,
cairo_region_get_extents (clip_region, &clip_rect);
- glScissor (clip_rect.x, FLIP_Y (clip_rect.y + clip_rect.height),
- clip_rect.width, clip_rect.height);
+ glScissor (clip_rect.x * window_scale, FLIP_Y ((clip_rect.y + clip_rect.height) * window_scale),
+ clip_rect.width * window_scale, clip_rect.height * window_scale);
n_quads = 0;
n_rects = cairo_region_num_rectangles (clip_region);