示例#1
0
struct video_canvas_s *machine_video_canvas_get(unsigned int window)
{
    if (window == 0) {
        return crtc_get_canvas();
    }

    return NULL;
}
示例#2
0
int machine_screenshot(screenshot_t *screenshot, struct video_canvas_s *canvas)
{
    if (canvas != crtc_get_canvas()) {
        return -1;
    }

    crtc_screenshot(screenshot);
    return 0;
}
示例#3
0
文件: cbm2.c 项目: markjreed/vice-emu
int machine_canvas_async_refresh(struct canvas_refresh_s *refresh,
                                 struct video_canvas_s *canvas)
{
    if (canvas == crtc_get_canvas()) {
        crtc_async_refresh(refresh);
        return 0;
    }
    return -1;
}
示例#4
0
文件: cbm2.c 项目: martinpiper/VICE
int machine_screenshot(screenshot_t *screenshot, struct video_canvas_s *canvas)
{
    if (canvas == vicii_get_canvas()) {
        vicii_screenshot(screenshot);
        return 0;
    }
    if (canvas == crtc_get_canvas()) {
        crtc_screenshot(screenshot);
        return 0;
    }

    return -1;
}