#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(); });
}

}
}
}
