Notify window size to the shell

This commit is contained in:
kichikuou
2017-05-01 14:59:52 +09:00
parent 270e65ab78
commit 4ae927ff5b
+7
View File
@@ -1,6 +1,9 @@
#include "common.h"
#include "fileio.h"
#include "sys/nact.h"
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
extern "C" {
void ags_setAntialiasedStringMode(int on);
@@ -24,6 +27,10 @@ int main(int argc, char *argv[])
g_window = SDL_CreateWindow(buf, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 400, 0);
#ifdef __EMSCRIPTEN__
EM_ASM( xsystem35.shell.windowSizeChanged(); );
#endif
for (int i = 1; i < argc; i++) {
if (strcmp(argv[i], "-antialias") == 0)
ags_setAntialiasedStringMode(1);