Skip to content
Snippets Groups Projects
Commit c6af8f9a authored by deuce's avatar deuce
Browse files

Move dac_colors struct definition into vidmodes.h since that's where it's used.

Add reinclusion protection to vidmodes.h
parent 1552e132
No related branches found
No related tags found
No related merge requests found
......@@ -43,14 +43,9 @@
#include <gen_defs.h>
#include <semwrap.h>
extern sem_t console_mode_changed;
#include "vidmodes.h"
/* Entry type for the DAC table. Each value is actually 6 bits wide. */
struct dac_colors {
BYTE red;
BYTE green;
BYTE blue;
};
extern sem_t console_mode_changed;
extern int CurrMode;
......
......@@ -31,8 +31,10 @@
* Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/
#ifndef _VIDMODES_H_
#define _VIDMODES_H_
#include "ciolib.h"
#include "console.h"
struct video_params {
int mode;
......@@ -143,6 +145,13 @@ static unsigned char palettes[][16] = {
}
};
/* Entry type for the DAC table. Each value is actually 6 bits wide. */
struct dac_colors {
BYTE red;
BYTE green;
BYTE blue;
};
static struct dac_colors dac_default16[] = {
{0, 0, 0}, {0, 0, 42}, {0, 42, 0}, {0, 42, 42},
{42, 0, 0}, {42, 0, 42}, {42, 21, 0}, {42, 42, 42},
......@@ -161,3 +170,4 @@ static int find_vmode(int mode)
return -1;
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment