Don't overallocate colour memory in Loopy.

This commit is contained in:
Jonas Kölker
2015-09-21 16:24:10 +02:00
committed by Simon Tatham
parent 1380b55b5b
commit 9b1b7e0f3a

View File

@ -850,7 +850,7 @@ static void game_set_size(drawing *dr, game_drawstate *ds,
static float *game_colours(frontend *fe, int *ncolours)
{
float *ret = snewn(4 * NCOLOURS, float);
float *ret = snewn(3 * NCOLOURS, float);
frontend_default_colour(fe, &ret[COL_BACKGROUND * 3]);