src/video/emscripten/SDL_emscriptenevents.c
changeset 12574 109c919d61f6
parent 12573 296d155a8ce5
child 12652 b3c652757f97
equal deleted inserted replaced
12573:296d155a8ce5 12574:109c919d61f6
   602 
   602 
   603             if(window_data->external_size) {
   603             if(window_data->external_size) {
   604                 emscripten_get_element_css_size(NULL, &w, &h);
   604                 emscripten_get_element_css_size(NULL, &w, &h);
   605             }
   605             }
   606 
   606 
   607             emscripten_set_canvas_size(w * window_data->pixel_ratio, h * window_data->pixel_ratio);
   607             emscripten_set_canvas_element_size(NULL, w * window_data->pixel_ratio, h * window_data->pixel_ratio);
   608 
   608 
   609             /* set_canvas_size unsets this */
   609             /* set_canvas_size unsets this */
   610             if (!window_data->external_size && window_data->pixel_ratio != 1.0f) {
   610             if (!window_data->external_size && window_data->pixel_ratio != 1.0f) {
   611                 emscripten_set_element_css_size(NULL, w, h);
   611                 emscripten_set_element_css_size(NULL, w, h);
   612             }
   612             }