--- a/src/main-sdl2.c +++ b/src/main-sdl2.c @@ -4548,15 +4548,8 @@ static void load_default_window_icon(const struct window *window) { - char path[4096]; - path_build(path, sizeof(path), DEFAULT_WINDOW_ICON_DIR, DEFAULT_WINDOW_ICON); - - SDL_Surface *surface = IMG_Load(path); - assert(surface != NULL); - - SDL_SetWindowIcon(window->window, surface); - - SDL_FreeSurface(surface); + /* Web build: the canvas has no window icon, and lib/icons is left out. */ + (void) window; } static void load_graphics(struct window *window, graphics_mode *mode) @@ -6121,9 +6114,9 @@ return 1; } - if (!read_config_file()) { - create_defaults(); - } + /* Web build: always start from the default layout. The saved one is written + * when the page is closed, with whatever size the canvas has by then. */ + create_defaults(); start_windows(); load_terms(); @@ -6296,6 +6289,9 @@ static void dump_config_file(void) { + /* Web build: the window layout is not saved (see init_sdl2()). */ + return; + ang_file *config = file_open(g_config_file, MODE_WRITE, FTYPE_TEXT); assert(config != NULL); --- a/lib/tiles/list.txt +++ b/lib/tiles/list.txt @@ -54,15 +54,3 @@ size:16:16:8x16.png pref:graf-nmd.prf extra:0:0:0 - -name:5:Shockbolt Dark -directory:shockbolt -size:64:64:64x64.png -pref:graf-shb-dark.prf -extra:1:27:31 - -name:6:Shockbolt Light -directory:shockbolt -size:64:64:64x64.png -pref:graf-shb-light.prf -extra:1:27:31