int vdc_resources_init(void) { video_chip_cap.dsize_allowed = ARCHDEP_VDC_DSIZE; video_chip_cap.dsize_default = ARCHDEP_VDC_DSIZE; video_chip_cap.dsize_limit_width = 0; video_chip_cap.dsize_limit_height = 0; video_chip_cap.dscan_allowed = ARCHDEP_VDC_DSCAN; video_chip_cap.hwscale_allowed = ARCHDEP_VDC_HWSCALE; video_chip_cap.scale2x_allowed = 0; video_chip_cap.internal_palette_allowed = 0; video_chip_cap.external_palette_name = "vdc_deft"; video_chip_cap.palemulation_allowed = 0; video_chip_cap.double_buffering_allowed = ARCHDEP_VDC_DBUF; video_chip_cap.single_mode.sizex = 1; video_chip_cap.single_mode.sizey = 1; video_chip_cap.single_mode.rmode = VIDEO_RENDER_RGB_1X1; video_chip_cap.double_mode.sizex = 1; video_chip_cap.double_mode.sizey = 2; video_chip_cap.double_mode.rmode = VIDEO_RENDER_RGB_1X2; fullscreen_capability(&(video_chip_cap.fullscreen)); vdc.video_chip_cap = &video_chip_cap; if (raster_resources_chip_init("VDC", &vdc.raster, &video_chip_cap) < 0) return -1; return resources_register_int(resources_int); }
int vicii_resources_init(void) { video_chip_cap.dsize_allowed = ARCHDEP_VICII_DSIZE; video_chip_cap.dsize_default = ARCHDEP_VICII_DSIZE; video_chip_cap.dsize_limit_width = 0; video_chip_cap.dsize_limit_height = 0; video_chip_cap.dscan_allowed = ARCHDEP_VICII_DSCAN; video_chip_cap.hwscale_allowed = ARCHDEP_VICII_HWSCALE; video_chip_cap.scale2x_allowed = ARCHDEP_VICII_DSIZE; video_chip_cap.external_palette_name = "default"; video_chip_cap.double_buffering_allowed = ARCHDEP_VICII_DBUF; video_chip_cap.single_mode.sizex = 1; video_chip_cap.single_mode.sizey = 1; video_chip_cap.single_mode.rmode = VIDEO_RENDER_PAL_1X1; video_chip_cap.double_mode.sizex = 2; video_chip_cap.double_mode.sizey = 2; video_chip_cap.double_mode.rmode = VIDEO_RENDER_PAL_2X2; fullscreen_capability(&(video_chip_cap.fullscreen)); vicii.video_chip_cap = &video_chip_cap; if (raster_resources_chip_init("VICII", &vicii.raster, &video_chip_cap) < 0) { return -1; } return resources_register_int(resources_int); }
int ted_resources_init(void) { video_chip_cap.dsize_allowed = ARCHDEP_TED_DSIZE; video_chip_cap.dsize_default = 0; video_chip_cap.dsize_limit_width = 0; video_chip_cap.dsize_limit_height = 0; video_chip_cap.dscan_allowed = ARCHDEP_TED_DSCAN; video_chip_cap.hwscale_allowed = ARCHDEP_TED_HWSCALE; video_chip_cap.scale2x_allowed = ARCHDEP_TED_DSIZE; video_chip_cap.internal_palette_allowed = 1; video_chip_cap.external_palette_name = "default"; video_chip_cap.palemulation_allowed = 1; video_chip_cap.double_buffering_allowed = ARCHDEP_TED_DBUF; video_chip_cap.single_mode.sizex = 1; video_chip_cap.single_mode.sizey = 1; video_chip_cap.single_mode.rmode = VIDEO_RENDER_PAL_1X1; video_chip_cap.double_mode.sizex = 2; video_chip_cap.double_mode.sizey = 2; video_chip_cap.double_mode.rmode = VIDEO_RENDER_PAL_2X2; fullscreen_capability(&(video_chip_cap.fullscreen)); ted.video_chip_cap = &video_chip_cap; if (raster_resources_chip_init("TED", &ted.raster, &video_chip_cap) < 0) return -1; return 0; }
int crtc_resources_init(void) { video_chip_cap.dsize_allowed = ARCHDEP_CRTC_DSIZE; video_chip_cap.dsize_default = 0; video_chip_cap.dsize_limit_width = 800; /* 2 times the 80cols screen */ video_chip_cap.dsize_limit_height = 700; /* 4 times the 80cols screen */ video_chip_cap.dscan_allowed = ARCHDEP_CRTC_DSCAN; video_chip_cap.hwscale_allowed = ARCHDEP_CRTC_HWSCALE; video_chip_cap.external_palette_name = "green"; video_chip_cap.double_buffering_allowed = ARCHDEP_CRTC_DBUF; fullscreen_capability(&(video_chip_cap.fullscreen)); if (raster_resources_chip_init("Crtc", &crtc.raster, &video_chip_cap) < 0) { return -1; } crtc.video_chip_cap = &video_chip_cap; crtc_update_renderer(); return resources_register_int(resources_int); }