#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(); }