static void vic_set_geometry(void) { unsigned int width, height; width = vic.display_width * VIC_PIXEL_WIDTH; height = vic.last_displayed_line - vic.first_displayed_line + 1; raster_set_geometry(&vic.raster, width, height, vic.screen_width * VIC_PIXEL_WIDTH, vic.screen_height, 22 * 8 * VIC_PIXEL_WIDTH, 23 * 8, /* handled dynamically */ 22, 23, /* handled dynamically */ /* handled dynamically */ 12 * 4 * VIC_PIXEL_WIDTH, 38 * 2 - vic.first_displayed_line, 1, vic.first_displayed_line, vic.last_displayed_line, vic.screen_width + vic.max_text_cols * 8, vic.screen_width + vic.max_text_cols * 8); #ifdef __MSDOS__ video_ack_vga_mode(); #endif }
static void ted_set_geometry(void) { unsigned int width, height; width = TED_SCREEN_XPIX + ted.screen_borderwidth * 2; height = ted.last_displayed_line - ted.first_displayed_line + 1; raster_set_geometry(&ted.raster, width, height, TED_SCREEN_WIDTH, ted.screen_height, TED_SCREEN_XPIX, TED_SCREEN_YPIX, TED_SCREEN_TEXTCOLS, TED_SCREEN_TEXTLINES, ted.screen_borderwidth, ted.row_25_start_line, 0, ted.first_displayed_line, ted.last_displayed_line, 0, 0); #ifdef __MSDOS__ video_ack_vga_mode(); #endif }
static void ted_set_geometry(void) { unsigned int width, height; width = TED_SCREEN_XPIX + ted.screen_rightborderwidth + ted.screen_leftborderwidth; height = (ted.last_displayed_line - ted.first_displayed_line) + 1; #if 0 raster_set_geometry(&ted.raster, width, height, TED_SCREEN_WIDTH, ted.screen_height, TED_SCREEN_XPIX, TED_SCREEN_YPIX, TED_SCREEN_TEXTCOLS, TED_SCREEN_TEXTLINES, ted.screen_borderwidth, ted.row_25_start_line, 0, ted.first_displayed_line, ted.last_displayed_line, 0, 0); #endif raster_set_geometry(&ted.raster, width, height, /* canvas dimensions */ width, ted.screen_height, /* screen dimensions */ TED_SCREEN_XPIX, TED_SCREEN_YPIX, /* gfx dimensions */ TED_SCREEN_TEXTCOLS, TED_SCREEN_TEXTLINES, /* text dimensions */ ted.screen_leftborderwidth, ted.row_25_start_line + ted.screen_height - ted.vsync_line, /* gfx position */ 0, /* gfx area doesn't move */ ted.first_displayed_line, ted.last_displayed_line, -TED_RASTER_X(0), /* extra offscreen border left */ 0 + TED_SCREEN_XPIX - ted.screen_leftborderwidth - ted.screen_rightborderwidth + TED_RASTER_X(0)) /* extra offscreen border right */; #ifdef __MSDOS__ video_ack_vga_mode(); #endif ted.raster.geometry->pixel_aspect_ratio = ted_get_pixel_aspect(); ted.raster.viewport->crt_type = ted_get_crt_type(); }