mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-10 21:10:15 +00:00
(record_driver.c) Simplifications
This commit is contained in:
parent
a51acb8377
commit
d70d9d35f8
@ -526,14 +526,10 @@ void recording_driver_set_data_ptr(void *data)
|
||||
recording_data = data;
|
||||
}
|
||||
|
||||
unsigned *recording_driver_get_width(void)
|
||||
void recording_driver_get_size(unsigned *width, unsigned *height)
|
||||
{
|
||||
return &recording_width;
|
||||
}
|
||||
|
||||
unsigned *recording_driver_get_height(void)
|
||||
{
|
||||
return &recording_height;
|
||||
*width = recording_width;
|
||||
*height = recording_height;
|
||||
}
|
||||
|
||||
void recording_driver_update_streaming_url(void)
|
||||
|
@ -202,12 +202,10 @@ void recording_driver_clear_data_ptr(void);
|
||||
|
||||
void recording_driver_set_data_ptr(void *data);
|
||||
|
||||
unsigned *recording_driver_get_width(void);
|
||||
|
||||
unsigned *recording_driver_get_height(void);
|
||||
|
||||
void recording_driver_free_state(void);
|
||||
|
||||
void recording_driver_get_size(unsigned *width, unsigned *height);
|
||||
|
||||
bool recording_is_enabled(void);
|
||||
|
||||
bool streaming_is_enabled(void);
|
||||
|
20
retroarch.c
20
retroarch.c
@ -1073,13 +1073,21 @@ static void retroarch_parse_input_and_config(int argc, char *argv[])
|
||||
break;
|
||||
|
||||
case RA_OPT_SIZE:
|
||||
if (sscanf(optarg, "%ux%u",
|
||||
recording_driver_get_width(),
|
||||
recording_driver_get_height()) != 2)
|
||||
{
|
||||
RARCH_ERR("Wrong format for --size.\n");
|
||||
retroarch_print_help(argv[0]);
|
||||
retroarch_fail(1, "retroarch_parse_input()");
|
||||
unsigned recording_width = 0;
|
||||
unsigned recording_height = 0;
|
||||
|
||||
recording_driver_get_size(&recording_width,
|
||||
&recording_height);
|
||||
|
||||
if (sscanf(optarg, "%ux%u",
|
||||
&recording_width,
|
||||
&recording_height) != 2)
|
||||
{
|
||||
RARCH_ERR("Wrong format for --size.\n");
|
||||
retroarch_print_help(argv[0]);
|
||||
retroarch_fail(1, "retroarch_parse_input()");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user