From eb2b9fa64580cc4b593165e77f6e98fdd4cedd15 Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Sun, 23 May 2004 15:11:34 +0000 Subject: Fix detection of a partially obscured window. CVS patchset: 6578 CVS date: 2004/05/23 15:11:34 --- src/video_out/video_out_pgx64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/video_out/video_out_pgx64.c b/src/video_out/video_out_pgx64.c index 6dc1f4b8e..dfd8b5fc1 100644 --- a/src/video_out/video_out_pgx64.c +++ b/src/video_out/video_out_pgx64.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_pgx64.c,v 1.63 2004/05/02 20:13:23 mroi Exp $ + * $Id: video_out_pgx64.c,v 1.64 2004/05/23 15:11:34 komadori Exp $ * * video_out_pgx64.c, Sun PGX64/PGX24 output plugin for xine * @@ -467,7 +467,7 @@ static void pgx64_display_frame(vo_driver_t *this_gen, vo_frame_t *frame_gen) while ((cx0 = *cliprects++) != DGA_X_EOL) { cx1 = *cliprects++; - if (((cx0 >= wx0) && (cy0 >= wy0)) || ((cx1 <= wx1) && (cy1 <= wy1))) { + if ((cx0 < wx1) && (cy0 < wy1) && (cx1 > wx0) && (cy1 > wy0)) { dgavis = DGA_VIS_PARTIALLY_OBSCURED; } if ((cx0 <= wx0) && (cy0 <= wy0) && (cx1 >= wx1) && (cy1 >= wy1)) { @@ -475,6 +475,7 @@ static void pgx64_display_frame(vo_driver_t *this_gen, vo_frame_t *frame_gen) } } } + DGA_DRAW_UNLOCK(this->dgadraw); XUnlockDisplay(this->display); -- cgit v1.2.3