Commit 692f2f5c authored by deuce's avatar deuce
Browse files

Add VESA 132 column modes.

parent 66219f25
......@@ -176,6 +176,16 @@ enum text_modes
C128_40X25, /* Commodore 128 40x25 colour mode */
C128_80X25, /* Commodore 128 40x25 colour mode */
ATARI_40X24, /* Atari 800 40x24 colour text mode */
/* VESA Modes */
VESA_21X132 = 235,
VESA_25X132 = 231,
VESA_28X132 = 228,
VESA_30X132 = 226,
VESA_34X132 = 222,
VESA_43X132 = 213,
VESA_50X132 = 206,
VESA_60X132 = 196,
};
#define COLOR_MODE C80
......
......@@ -4,7 +4,7 @@
#include "vidmodes.h"
struct video_params vparams[40] = {
struct video_params vparams[48] = {
/* BW 40x25 */
{BW40, GREYSCALE_PALETTE, 40, 25, 14, 15, 16, 8},
/* CO 40x25 */
......@@ -85,6 +85,22 @@ struct video_params vparams[40] = {
{C128_80X25, COLOUR_PALETTE, 80, 25, 0, 7, 8, 8},
/* Atari 800 40x24 mode */
{ATARI_40X24, ATARI_PALETTE, 40, 24, 0, 7, 8, 8},
/* VESA 21x132 mode */
{VESA_21X132, COLOUR_PALETTE, 132, 21, 14, 15, 16, 8},
/* VESA 25x132 mode */
{VESA_25X132, COLOUR_PALETTE, 132, 25, 14, 15, 16, 8},
/* VESA 28x132 mode */
{VESA_28X132, COLOUR_PALETTE, 132, 28, 12, 13, 14, 8},
/* VESA 30x132 mode */
{VESA_30X132, COLOUR_PALETTE, 132, 30, 14, 15, 16, 8},
/* VESA 34x132 mode */
{VESA_34X132, COLOUR_PALETTE, 132, 34, 12, 13, 14, 8},
/* VESA 43x132 mode */
{VESA_43X132, COLOUR_PALETTE, 132, 34, 7, 7, 8, 8},
/* VESA 50x132 mode */
{VESA_50X132, COLOUR_PALETTE, 132, 50, 7, 7, 8, 8},
/* VESA 60x132 mode */
{VESA_60X132, COLOUR_PALETTE, 132, 60, 7, 7, 8, 8},
};
unsigned char palettes[5][16] = {
......
......@@ -88,7 +88,7 @@ enum {
,ATARI_PALETTE
};
extern struct video_params vparams[40];
extern struct video_params vparams[48];
#define NUMMODES (sizeof(vparams) / sizeof(struct video_params))
extern unsigned char palettes[5][16];
extern struct dac_colors dac_default[34];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment