#include "render.h"
#include "geom.h"
-void RrImageDraw(RrPixel32 *target, RrTextureRGBA *rgba, RrRect *area);
+void RrImageDraw(RrPixel32 *target, RrTextureRGBA *rgba,
+ gint target_w, gint target_h,
+ RrRect *area);
#endif
case RR_TEXTURE_RGBA:
g_assert(!transferred);
RrImageDraw(a->surface.pixel_data,
- &a->texture[i].data.rgba, &tarea);
+ &a->texture[i].data.rgba,
+ a->w, a->h,
+ &tarea);
break;
}
}
orig->textures * sizeof(RrTexture));
for (i = 0; i < copy->textures; ++i)
if (copy->texture[i].type == RR_TEXTURE_RGBA) {
- g_free(copy->texture[i].data.rgba.cache);
copy->texture[i].data.rgba.cache = NULL;
}
copy->pixmap = None;