fixed rescaling bug in fillgradient and addlink
authorkramm <kramm>
Fri, 26 Sep 2008 18:03:16 +0000 (18:03 +0000)
committerkramm <kramm>
Fri, 26 Sep 2008 18:03:16 +0000 (18:03 +0000)
lib/devices/rescale.c

index 53d3623..e82aed6 100644 (file)
@@ -211,7 +211,7 @@ void rescale_fillgradient(gfxdevice_t*dev, gfxline_t*line, gfxgradient_t*gradien
 {
     internal_t*i = (internal_t*)dev->internal;
     gfxline_t*line2 = transformgfxline(i, line);
-    i->out->fillgradient(i->out, line, gradient, type, matrix);
+    i->out->fillgradient(i->out, line2, gradient, type, matrix);
     gfxline_free(line2);
 }
 
@@ -233,7 +233,7 @@ void rescale_drawlink(gfxdevice_t*dev, gfxline_t*line, const char*action)
 {
     internal_t*i = (internal_t*)dev->internal;
     gfxline_t*line2 = transformgfxline(i, line);
-    i->out->drawlink(i->out, line, action);
+    i->out->drawlink(i->out, line2, action);
     gfxline_free(line2);
 }