mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 08:41:01 +01:00
17 lines
360 B
C++
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(); });
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|