0

Make the defaults actually work properly.

This commit is contained in:
Richard Pastrick
2012-06-08 14:39:21 -07:00
parent 28099deaf6
commit dc7a32d66d
4 changed files with 25 additions and 13 deletions

View File

@@ -23,8 +23,6 @@ typedef struct {
RenderPrimitiveOverlay parent;
} RenderPrimitiveSpawn;
static OverlayColor default_color[] = { 229, 36, 38, 0 };
static void get_color(void *data, RenderState *state,
unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) {
RenderPrimitiveSpawn* self = (RenderPrimitiveSpawn *)data;
@@ -70,6 +68,11 @@ overlay_spawn_start(void *data, RenderState *state, PyObject *support) {
self = (RenderPrimitiveSpawn *)data;
self->parent.get_color = get_color;
self->parent.default_color.r = 229;
self->parent.default_color.g = 36;
self->parent.default_color.b = 38;
self->parent.default_color.a = 0;
return 0;
}