From: Dana Jansens Date: Mon, 26 May 2003 21:18:23 +0000 (+0000) Subject: use the surface's area X-Git-Tag: gl2~104 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=bddf0b99ace6162ae31c1c4d28be3e215ebf597a;p=dana%2Fopenbox.git use the surface's area --- 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;