From bddf0b99ace6162ae31c1c4d28be3e215ebf597a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 26 May 2003 21:18:23 +0000 Subject: [PATCH] use the surface's area --- render2/planar.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/render2/planar.c b/render2/planar.c index a6a321dd..05498bbd 100644 --- a/render2/planar.c +++ b/render2/planar.c @@ -66,12 +66,18 @@ static void copy_parent(struct RrSurface *sur) void RrPlanarPaint(struct RrSurface *sur, int x, int y, int w, int h) { struct RrColor *pri, *sec, avg; + int x, y, w, h; copy_parent(sur); pri = &RrPlanarPrimaryColor(sur); sec = &RrPlanarSecondaryColor(sur); + x = RrSurfaceX(sur); + y = RrSurfaceY(sur); + w = RrSurfaceWidth(sur); + h = RrSurfaceHeight(sur); + switch (RrPlanarColorType(sur)) { case RR_PLANAR_NONE: return; -- 2.34.1