mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 16:32:13 -07:00
Cleanup: relieve frontends of the duty to call
midend_rewrite_statusbar() and check the result against the last string returned. This is now done centrally in drawing.c, and the front end status bar function need only do what it says on the tin. While I'm modifying the prototype of drawing_init(), I've also renamed it drawing_new() for the same reason as random_new() (it _allocates_ a drawing object, rather than just initialising one passed in). [originally from svn r6420]
This commit is contained in:
@ -159,7 +159,7 @@ void get_random_seed(void **randseed, int *randseedsize);
|
||||
/*
|
||||
* drawing.c
|
||||
*/
|
||||
drawing *drawing_init(const drawing_api *api, void *handle);
|
||||
drawing *drawing_new(const drawing_api *api, midend *me, void *handle);
|
||||
void drawing_free(drawing *dr);
|
||||
void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize,
|
||||
int align, int colour, char *text);
|
||||
|
Reference in New Issue
Block a user