mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
Cleanup: remove the game_state parameter to game_colours(). No game
was actually using it, and also it wasn't being called again for different game states or different game parameters, so it would have been a mistake to depend on anything in that game state. Games are now expected to commit in advance to a single fixed list of all the colours they will ever need, which was the case in practice already and simplifies any later port to a colour-poor platform. Also this change has removed a lot of unnecessary faff from midend_colours(). [originally from svn r6416]
This commit is contained in:
@ -383,7 +383,7 @@ struct game {
|
||||
void (*compute_size)(game_params *params, int tilesize, int *x, int *y);
|
||||
void (*set_size)(drawing *dr, game_drawstate *ds,
|
||||
game_params *params, int tilesize);
|
||||
float *(*colours)(frontend *fe, game_state *state, int *ncolours);
|
||||
float *(*colours)(frontend *fe, int *ncolours);
|
||||
game_drawstate *(*new_drawstate)(drawing *dr, game_state *state);
|
||||
void (*free_drawstate)(drawing *dr, game_drawstate *ds);
|
||||
void (*redraw)(drawing *dr, game_drawstate *ds, game_state *oldstate,
|
||||
|
Reference in New Issue
Block a user