From 9129395a684dc9a8a129e926d3aa3f1d0951080d Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 2 Aug 2016 18:57:09 +0200 Subject: [PATCH] Non-Compaq ATI 28800 now supports 1 MB VRAM; Both ATI 28800 variants now also support 256 kB VRAM. --- src/vid_ati28800.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/vid_ati28800.c b/src/vid_ati28800.c index ac91b239b..638c2d781 100644 --- a/src/vid_ati28800.c +++ b/src/vid_ati28800.c @@ -156,7 +156,7 @@ void *ati28800_init() { uint32_t memory = 512; ati28800_t *ati28800; - if (gfxcard == GFX_VGAWONDERXL) memory = device_get_config_int("memory"); + /* if (gfxcard == GFX_VGAWONDERXL) * / memory = device_get_config_int("memory"); memory <<= 10; ati28800 = malloc(sizeof(ati28800_t)); memset(ati28800, 0, sizeof(ati28800_t)); @@ -227,7 +227,7 @@ void ati28800_add_status_info(char *s, int max_len, void *p) svga_add_status_info(s, max_len, &ati28800->svga); } -static device_config_t compaq_ati28800_config[] = +static device_config_t ati28800_config[] = { { .name = "memory", @@ -235,6 +235,10 @@ static device_config_t compaq_ati28800_config[] = .type = CONFIG_SELECTION, .selection = { + { + .description = "256 kB", + .value = 256 + }, { .description = "512 kB", .value = 512 @@ -263,7 +267,8 @@ device_t ati28800_device = ati28800_available, ati28800_speed_changed, ati28800_force_redraw, - ati28800_add_status_info + ati28800_add_status_info, + ati28800_config }; device_t compaq_ati28800_device = @@ -276,5 +281,5 @@ device_t compaq_ati28800_device = ati28800_speed_changed, ati28800_force_redraw, ati28800_add_status_info, - compaq_ati28800_config + ati28800_config };