From 170fa13d83071edc942151fced8605fe0b056f60 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 2 Apr 2003 05:54:26 +0000 Subject: [PATCH] stop copying. still segfault? --- render/render.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/render/render.c b/render/render.c index de45c093..e188bf3d 100644 --- a/render/render.c +++ b/render/render.c @@ -96,7 +96,6 @@ void x_paint(Window win, Appearance *l) int y = l->area.y; int w = l->area.width; int h = l->area.height; - int parenty = l->surface.data.planar.parenty; if (w <= 0 || h <= 0 || x+w <= 0 || y+h <= 0) return; @@ -119,10 +118,11 @@ 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 - + l->surface.data.planar.parentx + sw * parenty; + + l->surface.data.planar.parentx + + sw * l->surface.data.planar.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)); + for (i = 0; i < h; i++, source += sw, dest += w) { +/* memcpy(dest, source, w * sizeof(pixel32));*/ } } else if (l->surface.data.planar.grad == Background_Solid) -- 2.45.2