blob: 81a314a2303ad7cd9f818458160d3901cf8d5688 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "interface.h"
int VideoMode;
void SetDisplayMode(int x)
{
if ((x == 0) || (x == 1)) {
VideoMode = x;
}
else {
printf("Failed to set video mode.");
}
}
void DisplayInit() {
VideoMode ? DisplayInit_SDL() : DisplayInit_Ncurses();
}
void DisplayClose() {
VideoMode ? DisplayClose_SDL() : DisplayClose_Ncurses();
}
void DisplayInput(byte n) {
VideoMode ? DisplayInput_SDL(n) : DisplayInput_Ncurses(n);
}
void PrintInfo() {
VideoMode ? PrintInfo_SDL() : PrintInfo_Ncurses();
}
|