src/video/emscripten/SDL_emscriptenevents.c
changeset 10895 fd63ed9b0746
parent 10737 3406a0f8b041
child 10976 1da5502cf8ea
     1.1 --- a/src/video/emscripten/SDL_emscriptenevents.c	Fri Feb 17 02:25:37 2017 -0500
     1.2 +++ b/src/video/emscripten/SDL_emscriptenevents.c	Fri Feb 17 10:13:07 2017 +0000
     1.3 @@ -556,7 +556,9 @@
     1.4      SDL_WindowData *window_data = userData;
     1.5  
     1.6      /* update pixel ratio */
     1.7 -    window_data->pixel_ratio = emscripten_get_device_pixel_ratio();
     1.8 +    if (window_data->window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
     1.9 +        window_data->pixel_ratio = emscripten_get_device_pixel_ratio();
    1.10 +    }
    1.11  
    1.12      if(!(window_data->window->flags & FULLSCREEN_MASK))
    1.13      {