Skip to content

Commit

Permalink
Fix full screen mode in Firefox, which was broken by 9d4beb2
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamlayers committed Sep 13, 2016
1 parent b71208d commit 791b946
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/emscripten/SDL_emscriptenvideo.c
Expand Up @@ -24,6 +24,7 @@

#include "SDL_video.h"
#include "SDL_mouse.h"
#include "SDL_hints.h"
#include "../SDL_sysvideo.h"
#include "../SDL_pixels_c.h"
#include "../SDL_egl_c.h"
Expand Down Expand Up @@ -76,6 +77,9 @@ Emscripten_CreateDevice(int devindex)
return (0);
}

/* Firefox sends blur event which would otherwise prevent full screen */
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");

/* Set the function pointers */
device->VideoInit = Emscripten_VideoInit;
device->VideoQuit = Emscripten_VideoQuit;
Expand Down

0 comments on commit 791b946

Please sign in to comment.