struct video_canvas_s *machine_video_canvas_get(unsigned int window) { if (window == 0) { return crtc_get_canvas(); } return NULL; }
int machine_screenshot(screenshot_t *screenshot, struct video_canvas_s *canvas) { if (canvas != crtc_get_canvas()) { return -1; } crtc_screenshot(screenshot); return 0; }
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; }
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; }