mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Don't overallocate colour memory in Loopy.
This commit is contained in:

committed by
Simon Tatham

parent
1380b55b5b
commit
9b1b7e0f3a
2
loopy.c
2
loopy.c
@ -850,7 +850,7 @@ static void game_set_size(drawing *dr, game_drawstate *ds,
|
|||||||
|
|
||||||
static float *game_colours(frontend *fe, int *ncolours)
|
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]);
|
frontend_default_colour(fe, &ret[COL_BACKGROUND * 3]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user