mirror of https://github.com/encounter/SDL.git
Fix full screen mode in Firefox, which was broken by 9d4beb2
This commit is contained in:
parent
b71208d452
commit
791b946a42
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#include "SDL_video.h"
|
#include "SDL_video.h"
|
||||||
#include "SDL_mouse.h"
|
#include "SDL_mouse.h"
|
||||||
|
#include "SDL_hints.h"
|
||||||
#include "../SDL_sysvideo.h"
|
#include "../SDL_sysvideo.h"
|
||||||
#include "../SDL_pixels_c.h"
|
#include "../SDL_pixels_c.h"
|
||||||
#include "../SDL_egl_c.h"
|
#include "../SDL_egl_c.h"
|
||||||
|
@ -76,6 +77,9 @@ Emscripten_CreateDevice(int devindex)
|
||||||
return (0);
|
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 */
|
/* Set the function pointers */
|
||||||
device->VideoInit = Emscripten_VideoInit;
|
device->VideoInit = Emscripten_VideoInit;
|
||||||
device->VideoQuit = Emscripten_VideoQuit;
|
device->VideoQuit = Emscripten_VideoQuit;
|
||||||
|
|
Loading…
Reference in New Issue