+void swf_Render_SetBackground(RENDERBUF*buf, RGBA*img, int width, int height)
+{
+ renderbuf_internal*i = (renderbuf_internal*)buf->internal;
+ RGBA*bck = (RGBA*)rfx_alloc(sizeof(RGBA)*width*height);
+ memcpy(bck, img, sizeof(RGBA)*width*height);
+ i->background = bck;
+ i->background_width = width;
+ i->background_height = height;
+}
+void swf_Render_SetBackgroundColor(RENDERBUF*buf, RGBA color)
+{
+ swf_Render_SetBackground(buf, &color, 1, 1);
+}