Merge pull request #4634 from mystuffs/config_va_name

Mark plat_vidapi() argument as const and remove the NULL
This commit is contained in:
Miran Grča
2024-07-21 23:45:48 +02:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -1720,7 +1720,7 @@ save_general(void)
char temp[512];
char buffer[512] = { 0 };
const char *va_name = NULL;
const char *va_name;
ini_section_set_int(cat, "vid_resize", vid_resize);
if (vid_resize == 0)

View File

@@ -153,7 +153,7 @@ extern uint32_t plat_get_ticks(void);
extern void plat_delay_ms(uint32_t count);
extern void plat_pause(int p);
extern void plat_mouse_capture(int on);
extern int plat_vidapi(char *name);
extern int plat_vidapi(const char *name);
extern char *plat_vidapi_name(int api);
extern void plat_resize(int x, int y, int monitor_index);
extern void plat_resize_request(int x, int y, int monitor_index);

View File

@@ -38,7 +38,7 @@ qt_nvr_save(void)
char icon_set[256] = ""; /* name of the iconset to be used */
int
plat_vidapi(char *api)
plat_vidapi(const char *api)
{
if (!strcasecmp(api, "default") || !strcasecmp(api, "system")) {
return 0;

View File

@@ -392,7 +392,7 @@ sdl_reload(void)
}
int
plat_vidapi(char *api)
plat_vidapi(UNUSED(const char *api))
{
return 0;
}