#include "../shared/window.h" #include 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(); }); } } } }