Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
e7b800cd
Commit
e7b800cd
authored
Jul 25, 2019
by
deuce
Browse files
Add a "custom" mode with the intent that software will poke around in the
vidparam structure itself.
parent
1cfd1533
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
src/conio/ciolib.h
src/conio/ciolib.h
+4
-0
src/conio/vidmodes.c
src/conio/vidmodes.c
+2
-0
src/conio/vidmodes.h
src/conio/vidmodes.h
+1
-1
No files found.
src/conio/ciolib.h
View file @
e7b800cd
...
...
@@ -34,6 +34,7 @@
#ifndef _CIOLIB_H_
#define _CIOLIB_H_
#include <limits.h>
/* INT_MAX */
#include <string.h>
/* size_t */
#include "gen_defs.h"
...
...
@@ -202,6 +203,9 @@ enum text_modes
VESA_132X43
=
213
,
VESA_132X50
=
206
,
VESA_132X60
=
196
,
/* Custom Mode */
CIOLIB_MODE_CUSTOM
=
INT_MAX
,
};
#define COLOR_MODE C80
...
...
src/conio/vidmodes.c
View file @
e7b800cd
...
...
@@ -112,6 +112,8 @@ struct video_params vparams[] = {
/* Awesome modes */
{
ST132X37_16_9
,
COLOUR_PALETTE
,
132
,
37
,
14
,
15
,
16
,
8
,
1
},
{
ST132X52_5_4
,
COLOUR_PALETTE
,
132
,
52
,
14
,
15
,
16
,
8
,
1
},
/* Custom mode */
{
CIOLIB_MODE_CUSTOM
,
COLOUR_PALETTE
,
80
,
25
,
14
,
15
,
16
,
8
,
1
},
};
uint32_t
palettes
[
5
][
16
]
=
{
...
...
src/conio/vidmodes.h
View file @
e7b800cd
...
...
@@ -107,7 +107,7 @@ enum {
,
ATARI_PALETTE
};
extern
struct
video_params
vparams
[
5
2
];
extern
struct
video_params
vparams
[
5
3
];
#define NUMMODES (sizeof(vparams) / sizeof(struct video_params))
extern
uint32_t
palettes
[
5
][
16
];
extern
struct
dac_colors
dac_default
[
TOTAL_DAC_SIZE
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment