mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
add new aspect_ratio to ddraw.ini
This commit is contained in:
parent
33666bbd19
commit
164365efd3
@ -28,8 +28,8 @@ typedef struct CNCDDRAWCONFIG
|
|||||||
BOOL fullscreen;
|
BOOL fullscreen;
|
||||||
BOOL windowed;
|
BOOL windowed;
|
||||||
BOOL maintas;
|
BOOL maintas;
|
||||||
BOOL boxing;
|
|
||||||
char aspect_ratio[16];
|
char aspect_ratio[16];
|
||||||
|
BOOL boxing;
|
||||||
int maxfps;
|
int maxfps;
|
||||||
BOOL vsync;
|
BOOL vsync;
|
||||||
BOOL adjmouse;
|
BOOL adjmouse;
|
||||||
|
@ -38,8 +38,8 @@ void cfg_load()
|
|||||||
GET_BOOL(g_config.fullscreen, "fullscreen", FALSE);
|
GET_BOOL(g_config.fullscreen, "fullscreen", FALSE);
|
||||||
GET_BOOL(g_config.windowed, "windowed", FALSE);
|
GET_BOOL(g_config.windowed, "windowed", FALSE);
|
||||||
GET_BOOL(g_config.maintas, "maintas", FALSE);
|
GET_BOOL(g_config.maintas, "maintas", FALSE);
|
||||||
GET_BOOL(g_config.boxing, "boxing", FALSE);
|
|
||||||
GET_STRING("aspect_ratio", "", g_config.aspect_ratio, sizeof(g_config.aspect_ratio));
|
GET_STRING("aspect_ratio", "", g_config.aspect_ratio, sizeof(g_config.aspect_ratio));
|
||||||
|
GET_BOOL(g_config.boxing, "boxing", FALSE);
|
||||||
GET_INT(g_config.maxfps, "maxfps", -1);
|
GET_INT(g_config.maxfps, "maxfps", -1);
|
||||||
GET_BOOL(g_config.vsync, "vsync", FALSE);
|
GET_BOOL(g_config.vsync, "vsync", FALSE);
|
||||||
GET_BOOL(g_config.adjmouse, "adjmouse", TRUE);
|
GET_BOOL(g_config.adjmouse, "adjmouse", TRUE);
|
||||||
@ -197,6 +197,9 @@ static void cfg_create_ini()
|
|||||||
"; Maintain aspect ratio\n"
|
"; Maintain aspect ratio\n"
|
||||||
"maintas=false\n"
|
"maintas=false\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
"; Use custom aspect ratio - Example values: 4:3, 16:10, 16:9, 21:9\n"
|
||||||
|
"aspect_ratio=\n"
|
||||||
|
"\n"
|
||||||
"; Windowboxing / Integer Scaling\n"
|
"; Windowboxing / Integer Scaling\n"
|
||||||
"boxing=false\n"
|
"boxing=false\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user