Skip to content
Permalink
Browse files

Scale fullscreen with DPI in web client. This particularly approves f…

…ullscreen on mobile devices.
  • Loading branch information
UnknownShadow200 committed Jan 2, 2020
1 parent 4c9b7d6 commit b7099de880f8ab2d15237c49fa59ac6fee25fbfd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Window.c
@@ -2745,7 +2745,7 @@ int Window_GetWindowState(void) {
cc_result Window_EnterFullscreen(void) {
EmscriptenFullscreenStrategy strategy;
strategy.scaleMode = EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH;
strategy.canvasResolutionScaleMode = EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_STDDEF;
strategy.canvasResolutionScaleMode = EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_HIDEF;
strategy.filteringMode = EMSCRIPTEN_FULLSCREEN_FILTERING_DEFAULT;

strategy.canvasResizedCallback = Window_CanvasResize;

0 comments on commit b7099de

Please sign in to comment.
You can’t perform that action at this time.