Refactor video_viewport_get_scaled_integer

This commit is contained in:
twinaphex 2015-02-14 06:12:53 +01:00
parent 4b027ed975
commit e5bc445252
2 changed files with 5 additions and 3 deletions

View File

@ -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)
{

View File

@ -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);