mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-19 01:12:33 +00:00
Rewrite video_viewport_get_scaled_integer
This commit is contained in:
parent
1c58b1bf9c
commit
59dc90dd0c
@ -148,11 +148,12 @@ void video_viewport_set_config(void)
|
||||
* Gets viewport scaling dimensions based on
|
||||
* scaled integer aspect ratio.
|
||||
**/
|
||||
void video_viewport_get_scaled_integer(struct rarch_viewport *vp,
|
||||
void video_viewport_get_scaled_integer(void *data,
|
||||
unsigned width, unsigned height,
|
||||
float aspect_ratio, bool keep_aspect)
|
||||
{
|
||||
int padding_x = 0, padding_y = 0;
|
||||
struct rarch_viewport *vp = (struct rarch_viewport*)data;
|
||||
|
||||
if (g_settings.video.aspect_ratio_idx == ASPECT_RATIO_CUSTOM)
|
||||
{
|
||||
|
@ -124,7 +124,7 @@ void video_viewport_set_config(void);
|
||||
* Gets viewport scaling dimensions based on
|
||||
* scaled integer aspect ratio.
|
||||
**/
|
||||
void video_viewport_get_scaled_integer(struct rarch_viewport *vp,
|
||||
void video_viewport_get_scaled_integer(void *data,
|
||||
unsigned width, unsigned height,
|
||||
float aspect_ratio, bool keep_aspect);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user