use the surface's area
authorDana Jansens <danakj@orodu.net>
Mon, 26 May 2003 21:18:23 +0000 (21:18 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 26 May 2003 21:18:23 +0000 (21:18 +0000)
render2/planar.c

index a6a321dde7cd42509a2e0d6e6adafc61264e3d0e..05498bbda321697569c725e6cd8f4875a583ac80 100644 (file)
@@ -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;