From c8809d6803157a986cfd2189de63c320912f96f3 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Fri, 29 Jun 2007 06:54:18 +0000 Subject: [PATCH] A more sensible version of rect merging -- before, it would stop merging after the first pair. D'oh! --- sdl1/pdcdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl1/pdcdisp.c b/sdl1/pdcdisp.c index df40c474..8603c514 100644 --- a/sdl1/pdcdisp.c +++ b/sdl1/pdcdisp.c @@ -13,7 +13,7 @@ #include "pdcsdl.h" -RCSID("$Id: pdcdisp.c,v 1.22 2007/06/27 07:17:33 wmcbrine Exp $") +RCSID("$Id: pdcdisp.c,v 1.23 2007/06/29 06:54:18 wmcbrine Exp $") #include #include @@ -247,7 +247,7 @@ void PDC_transform_line(int lineno, int x, int len, const chtype *srcp) lastrect = uprect[rectcount - 1]; if (rectcount && (lastrect.x == dest.x) && - (lastrect.w == dest.w) && (lastrect.y == dest.y - pdc_fheight)) + (lastrect.w == dest.w) && (lastrect.y + lastrect.h == dest.y)) uprect[rectcount - 1].h = lastrect.h + pdc_fheight; else uprect[rectcount++] = dest;