void action_show_video(string fname, bool windowed, bool loop) { // Initialize the COM library. HRESULT hr = CoInitialize(NULL); if (FAILED(hr)) { MessageBox(NULL, "Failed to initialize COM library.", "ERROR", MB_ICONERROR | MB_OK); return; } int vid = video_add(fname); video_set_scale(vid, true); video_set_fullscreen(vid, windowed); video_start(vid, loop); CoUninitialize(); }
static int moonbase_video_set_fullscreen( lua_State *s ) { video_set_fullscreen( luaL_checkint(s, 1) ); return 0; }