Hopefully fixed all cases of the perspective tool preview breaking with

2004-10-27  Philip Lafleur <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Hopefully fixed all cases
	of the perspective tool preview breaking with certain orientations.
This commit is contained in:
Philip Lafleur 2004-10-28 00:38:23 +00:00 committed by Philip Lafleur
parent 7179ac43a3
commit 2f3073910c
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-10-27 Philip Lafleur <plafleur@cvs.gnome.org>
* app/display/gimpdisplayshell-preview.c: Hopefully fixed all cases
of the perspective tool preview breaking with certain orientations.
2004-10-27 Manish Singh <yosh@gimp.org>
* tools/pdbgen/enumcode.pl: Don't declare $first twice.

View file

@ -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