mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
Refactor video_viewport_get_scaled_integer
This commit is contained in:
parent
4b027ed975
commit
e5bc445252
@ -148,12 +148,14 @@ void video_viewport_set_config(void)
|
||||
* Gets viewport scaling dimensions based on
|
||||
* scaled integer aspect ratio.
|
||||
**/
|
||||
void video_viewport_get_scaled_integer(void *data,
|
||||
void video_viewport_get_scaled_integer(struct video_viewport *vp,
|
||||
unsigned width, unsigned height,
|
||||
float aspect_ratio, bool keep_aspect)
|
||||
{
|
||||
int padding_x = 0, padding_y = 0;
|
||||
struct video_viewport *vp = (struct video_viewport*)data;
|
||||
|
||||
if (!vp)
|
||||
return;
|
||||
|
||||
if (g_settings.video.aspect_ratio_idx == ASPECT_RATIO_CUSTOM)
|
||||
{
|
||||
|
@ -133,7 +133,7 @@ void video_viewport_set_config(void);
|
||||
* Gets viewport scaling dimensions based on
|
||||
* scaled integer aspect ratio.
|
||||
**/
|
||||
void video_viewport_get_scaled_integer(void *data,
|
||||
void video_viewport_get_scaled_integer(struct video_viewport *vp,
|
||||
unsigned width, unsigned height,
|
||||
float aspect_ratio, bool keep_aspect);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user