예제 #1
0
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();
}
예제 #2
0
파일: menu.c 프로젝트: LemonBoy/grape
static int opt_scale (const int sel)
{
    emu_scale = sel;
    video_set_scale(emu_scale);
    return 1;
}