diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-11-20 18:01:19 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-11-20 19:10:23 +0000 |
| commit | 77c8b50834a8978fbbebe2f6701448aff5d9f08e (patch) | |
| tree | c9bcb533e2199dfb5c2c739edc5a31c8c8dc2af5 /emcc.c | |
| parent | f86623bbd93e703f1be6432cc221319543a304e6 (diff) | |
| download | puzzles-77c8b50834a8978fbbebe2f6701448aff5d9f08e.zip puzzles-77c8b50834a8978fbbebe2f6701448aff5d9f08e.tar.gz puzzles-77c8b50834a8978fbbebe2f6701448aff5d9f08e.tar.bz2 puzzles-77c8b50834a8978fbbebe2f6701448aff5d9f08e.tar.xz | |
js: Allow status bar to be present in the HTML
I'm generally in favour of putting HTML in HTML rather the constructing
it in JavaScript, and this will allow for simplifying the code
eventually. This only changes the JavaScript to make sure that's in
people's caches before I change the HTML itself.
Diffstat (limited to 'emcc.c')
| -rw-r--r-- | emcc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -80,6 +80,7 @@ extern void js_canvas_free_blitter(int id); extern void js_canvas_copy_to_blitter(int id, int x, int y, int w, int h); extern void js_canvas_copy_from_blitter(int id, int x, int y, int w, int h); extern void js_canvas_make_statusbar(void); +extern void js_canvas_remove_statusbar(void); extern void js_canvas_set_statusbar(const char *text); extern void js_canvas_set_size(int w, int h); extern double js_get_device_pixel_ratio(); @@ -958,6 +959,8 @@ int main(int argc, char **argv) */ if (midend_wants_statusbar(me)) js_canvas_make_statusbar(); + else + js_canvas_remove_statusbar(); /* * Set up the game-type dropdown with presets and/or the Custom |