src/video/emscripten/SDL_emscriptenevents.c
changeset 12574 109c919d61f6
parent 12573 296d155a8ce5
child 12652 b3c652757f97
     1.1 --- a/src/video/emscripten/SDL_emscriptenevents.c	Tue Jan 29 12:14:54 2019 +0000
     1.2 +++ b/src/video/emscripten/SDL_emscriptenevents.c	Tue Jan 29 12:18:56 2019 +0000
     1.3 @@ -604,7 +604,7 @@
     1.4                  emscripten_get_element_css_size(NULL, &w, &h);
     1.5              }
     1.6  
     1.7 -            emscripten_set_canvas_size(w * window_data->pixel_ratio, h * window_data->pixel_ratio);
     1.8 +            emscripten_set_canvas_element_size(NULL, w * window_data->pixel_ratio, h * window_data->pixel_ratio);
     1.9  
    1.10              /* set_canvas_size unsets this */
    1.11              if (!window_data->external_size && window_data->pixel_ratio != 1.0f) {