summaryrefslogtreecommitdiff
path: root/setup/display.c
blob: f4250590f2ad3615f1edac20291129834b0e31f9 (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
#include "textscreen.h"

static int vidmode = 1;
static int fullscreen = 0;
static int grabmouse = 1;

static char *modes[] = { "320x200", "640x400" };

void ConfigDisplay(void)
{
    txt_window_t *window;
    txt_table_t *box;
    
    window = TXT_NewWindow("Display Configuration");

    box = TXT_NewTable(2);
    TXT_AddWidget(box, TXT_NewLabel("Screen mode: "));
    TXT_AddWidget(box, TXT_NewDropdownList(&vidmode, modes, 2));
    TXT_AddWidget(window, box);

    TXT_AddWidget(window, TXT_NewCheckBox("Fullscreen", &fullscreen));
    TXT_AddWidget(window, TXT_NewCheckBox("Grab mouse", &grabmouse));
}