1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-13 12:17:10 +00:00

hyperweb:: auto-resizing

This commit is contained in:
Zeno Rogue
2020-10-15 16:35:44 +02:00
parent e881f3b8cb
commit 052854ec74
2 changed files with 32 additions and 2 deletions

View File

@@ -1151,8 +1151,7 @@ EX void initgraph() {
}
#if ISWEB
vid.xscr = vid.xres = 1280;
vid.yscr = vid.yres = 900;
get_canvas_size();
#else
const SDL_VideoInfo *inf = SDL_GetVideoInfo();
vid.xscr = vid.xres = inf->current_w;