[gtk/wip/baedert/for-master: 127/128] gl renderer: Fix two scale_x/y mixups
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 127/128] gl renderer: Fix two scale_x/y mixups
- Date: Thu, 22 Oct 2020 15:46:51 +0000 (UTC)
commit b6a843a05b0700722f7e001e89bc6670dc64c141
Author: Timm Bäder <mail baedert org>
Date: Tue Oct 20 17:33:15 2020 +0200
gl renderer: Fix two scale_x/y mixups
gsk/gl/gskglrenderer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index fb742a18a9..94960bc645 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2390,7 +2390,7 @@ render_outset_shadow_node (GskGLRenderer *self,
if (slice_is_visible (&slices[NINE_SLICE_TOP_CENTER]))
{
x1 = min_x + (slices[NINE_SLICE_TOP_LEFT].width / scale_x);
- x2 = max_x - (slices[NINE_SLICE_TOP_RIGHT].width / scale_y);
+ x2 = max_x - (slices[NINE_SLICE_TOP_RIGHT].width / scale_x);
y1 = min_y;
y2 = min_y + (slices[NINE_SLICE_TOP_CENTER].height / scale_y);
@@ -2487,7 +2487,7 @@ render_outset_shadow_node (GskGLRenderer *self,
{
x1 = min_x;
x2 = min_x + (slices[NINE_SLICE_LEFT_CENTER].width / scale_x);
- y1 = min_y + (slices[NINE_SLICE_TOP_LEFT].height / scale_x);
+ y1 = min_y + (slices[NINE_SLICE_TOP_LEFT].height / scale_y);
y2 = max_y - (slices[NINE_SLICE_BOTTOM_LEFT].height / scale_y);
tx1 = tregs[NINE_SLICE_LEFT_CENTER].x;
tx2 = tregs[NINE_SLICE_LEFT_CENTER].x2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]