Files
Upsilon/ion/src/simulator/web/window_callback.cpp
2021-03-03 15:37:47 +01:00

17 lines
360 B
C++

#include "../shared/window.h"
#include <emscripten.h>
namespace Ion {
namespace Simulator {
namespace Window {
void didRefresh() {
/* Notify JS that the display has been refreshed.
* This gives us a chance to mirror the display in fullscreen mode. */
EM_ASM(if (typeof Module.onDisplayRefresh === "function") { Module.onDisplayRefresh(); });
}
}
}
}