]> Dogcows Code - chaz/openbox/commitdiff
find the right offset in the source data for parent relative
authorDana Jansens <danakj@orodu.net>
Wed, 2 Apr 2003 04:30:57 +0000 (04:30 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 2 Apr 2003 04:30:57 +0000 (04:30 +0000)
render/render.c

index 4c77cfb123128dfa7c1201e44eeb5837e8eff030..de45c0935fa204a7284eb38965558f1fda546e47 100644 (file)
@@ -118,7 +118,8 @@ void x_paint(Window win, Appearance *l)
 
     if (l->surface.data.planar.grad == Background_ParentRelative) {
         sw = l->surface.data.planar.parent->area.width;
-        source = l->surface.data.planar.parent->surface.data.planar.pixel_data;
+        source = l->surface.data.planar.parent->surface.data.planar.pixel_data
+            + l->surface.data.planar.parentx + sw * parenty;
         dest = l->surface.data.planar.pixel_data;
         for (i = parenty; i < parenty + h; i++, source += sw, dest += w) {
             memcpy(dest, source, w * sizeof(pixel32));
This page took 0.022443 seconds and 4 git commands to generate.