Add config for DPI scaling of the emulated screen
This commit is contained in:
@@ -459,7 +459,8 @@ load_general(void)
|
|||||||
force_43 = !!config_get_int(cat, "force_43", 0);
|
force_43 = !!config_get_int(cat, "force_43", 0);
|
||||||
scale = config_get_int(cat, "scale", 1);
|
scale = config_get_int(cat, "scale", 1);
|
||||||
if (scale > 3)
|
if (scale > 3)
|
||||||
scale = 3;
|
scale = 3;
|
||||||
|
dpi_scale = config_get_int(cat, "dpi_scale", 1);
|
||||||
|
|
||||||
enable_overscan = !!config_get_int(cat, "enable_overscan", 0);
|
enable_overscan = !!config_get_int(cat, "enable_overscan", 0);
|
||||||
vid_cga_contrast = !!config_get_int(cat, "vid_cga_contrast", 0);
|
vid_cga_contrast = !!config_get_int(cat, "vid_cga_contrast", 0);
|
||||||
@@ -1605,6 +1606,11 @@ save_general(void)
|
|||||||
else
|
else
|
||||||
config_set_int(cat, "scale", scale);
|
config_set_int(cat, "scale", scale);
|
||||||
|
|
||||||
|
if (dpi_scale == 1)
|
||||||
|
config_delete_var(cat, "dpi_scale");
|
||||||
|
else
|
||||||
|
config_set_int(cat, "dpi_scale", dpi_scale);
|
||||||
|
|
||||||
if (enable_overscan == 0)
|
if (enable_overscan == 0)
|
||||||
config_delete_var(cat, "enable_overscan");
|
config_delete_var(cat, "enable_overscan");
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ extern int window_w, window_h, /* (C) window size and */
|
|||||||
invert_display, /* (C) invert the display */
|
invert_display, /* (C) invert the display */
|
||||||
suppress_overscan; /* (C) suppress overscans */
|
suppress_overscan; /* (C) suppress overscans */
|
||||||
extern int scale; /* (C) screen scale factor */
|
extern int scale; /* (C) screen scale factor */
|
||||||
|
extern int dpi_scale; /* (C) DPI scaling of the emulated screen */
|
||||||
extern int vid_api; /* (C) video renderer */
|
extern int vid_api; /* (C) video renderer */
|
||||||
extern int vid_cga_contrast, /* (C) video */
|
extern int vid_cga_contrast, /* (C) video */
|
||||||
video_fullscreen, /* (C) video */
|
video_fullscreen, /* (C) video */
|
||||||
|
|||||||
1
src/pc.c
1
src/pc.c
@@ -116,6 +116,7 @@ int window_w, window_h, /* (C) window size and */
|
|||||||
invert_display = 0, /* (C) invert the display */
|
invert_display = 0, /* (C) invert the display */
|
||||||
suppress_overscan = 0; /* (C) suppress overscans */
|
suppress_overscan = 0; /* (C) suppress overscans */
|
||||||
int scale = 0; /* (C) screen scale factor */
|
int scale = 0; /* (C) screen scale factor */
|
||||||
|
int dpi_scale = 0; /* (C) DPI scaling of the emulated screen */
|
||||||
int vid_api = 0; /* (C) video renderer */
|
int vid_api = 0; /* (C) video renderer */
|
||||||
int vid_cga_contrast = 0, /* (C) video */
|
int vid_cga_contrast = 0, /* (C) video */
|
||||||
video_fullscreen = 0, /* (C) video */
|
video_fullscreen = 0, /* (C) video */
|
||||||
|
|||||||
Reference in New Issue
Block a user