From 2f3073910c4ed1414a5a954c900441eda9d97ae0 Mon Sep 17 00:00:00 2001 From: Philip Lafleur Date: Thu, 28 Oct 2004 00:38:23 +0000 Subject: [PATCH] Hopefully fixed all cases of the perspective tool preview breaking with 2004-10-27 Philip Lafleur * app/display/gimpdisplayshell-preview.c: Hopefully fixed all cases of the perspective tool preview breaking with certain orientations. --- ChangeLog | 5 +++++ app/display/gimpdisplayshell-preview.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a6cbf084af..679e6a8771 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-27 Philip Lafleur + + * app/display/gimpdisplayshell-preview.c: Hopefully fixed all cases + of the perspective tool preview breaking with certain orientations. + 2004-10-27 Manish Singh * tools/pdbgen/enumcode.pl: Don't declare $first twice. diff --git a/app/display/gimpdisplayshell-preview.c b/app/display/gimpdisplayshell-preview.c index ebb62f20dd..8a2a795853 100644 --- a/app/display/gimpdisplayshell-preview.c +++ b/app/display/gimpdisplayshell-preview.c @@ -306,8 +306,12 @@ gimp_display_shell_draw_quad (GimpDrawable *texture, } \ - if (((x [0] > x [1]) && (x [3] > x [2])) || - ((x [0] < x [1]) && (x [3] < x [2]))) + if ((((x [0] > x [1]) && (x [3] > x [2])) || + ((x [0] < x [1]) && (x [3] < x [2]))) && + (! (((x [0] > x [2]) && (x [0] < x [1]) && (x [3] < x [2])) || + ((x [0] < x [2]) && (x [0] > x [1]) && (x [3] > x [2])) || + ((x [3] > x [1]) && (x [3] < x [2]) && (x [0] < x [1])) || + ((x [3] < x [1]) && (x [3] > x [2]) && (x [0] > x [2]))))) { /* * v0