From 61d7d7c0d91a93e0e73001661659fc02ed9f8697 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Thu, 20 Jan 2011 16:35:47 -0800 Subject: [PATCH] fixed clipping bug in swfrender --- lib/devices/render.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/devices/render.c b/lib/devices/render.c index 7eed8c9c..11c63d95 100644 --- a/lib/devices/render.c +++ b/lib/devices/render.c @@ -535,10 +535,7 @@ void newclip(struct _gfxdevice*dev) c->data = (U32*)rfx_calloc(sizeof(U32) * i->bitwidth * i->height2); c->next = i->clipbuf; i->clipbuf = c; - if(c->next) - memcpy(c->data, c->next->data, i->bitwidth*i->height2); - else - memset(c->data, 0, sizeof(U32)*i->bitwidth*i->height2); + memset(c->data, 0, sizeof(U32)*i->bitwidth*i->height2); } void endclip(struct _gfxdevice*dev, char removelast) -- 2.11.4.GIT