mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
video_viewport_get_custom will never be NULL
This commit is contained in:
parent
6d4ac23f26
commit
91abbdd4f1
@ -705,13 +705,10 @@ static void d3d_calculate_rect(void *data,
|
||||
{
|
||||
video_viewport_t *custom = video_viewport_get_custom();
|
||||
|
||||
if (custom)
|
||||
{
|
||||
*x = custom->x;
|
||||
*y = custom->y;
|
||||
*width = custom->width;
|
||||
*height = custom->height;
|
||||
}
|
||||
*x = custom->x;
|
||||
*y = custom->y;
|
||||
*width = custom->width;
|
||||
*height = custom->height;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
@ -296,13 +296,10 @@ static void sdl_refresh_viewport(sdl2_video_t *vid)
|
||||
const struct video_viewport *custom =
|
||||
(const struct video_viewport*)video_viewport_get_custom();
|
||||
|
||||
if (custom)
|
||||
{
|
||||
vid->vp.x = custom->x;
|
||||
vid->vp.y = custom->y;
|
||||
vid->vp.width = custom->width;
|
||||
vid->vp.height = custom->height;
|
||||
}
|
||||
vid->vp.x = custom->x;
|
||||
vid->vp.y = custom->y;
|
||||
vid->vp.width = custom->width;
|
||||
vid->vp.height = custom->height;
|
||||
}
|
||||
else if (vid->video.force_aspect)
|
||||
{
|
||||
|
@ -471,7 +471,6 @@ static void vita2d_gfx_set_viewport(void *data, unsigned viewport_width,
|
||||
{
|
||||
const struct video_viewport *custom = video_viewport_get_custom();
|
||||
|
||||
/* Vukan has top-left origin viewport. */
|
||||
x = custom->x;
|
||||
y = custom->y;
|
||||
viewport_width = custom->width;
|
||||
|
@ -1391,7 +1391,7 @@ static void vulkan_set_viewport(void *data, unsigned viewport_width,
|
||||
{
|
||||
const struct video_viewport *custom = video_viewport_get_custom();
|
||||
|
||||
/* Vukan has top-left origin viewport. */
|
||||
/* Vulkan has top-left origin viewport. */
|
||||
x = custom->x;
|
||||
y = custom->y;
|
||||
viewport_width = custom->width;
|
||||
|
@ -177,13 +177,10 @@ static void wiiu_gfx_update_viewport(wiiu_video_t* wiiu)
|
||||
{
|
||||
struct video_viewport *custom = video_viewport_get_custom();
|
||||
|
||||
if (custom)
|
||||
{
|
||||
x = custom->x;
|
||||
y = custom->y;
|
||||
width = custom->width;
|
||||
height = custom->height;
|
||||
}
|
||||
x = custom->x;
|
||||
y = custom->y;
|
||||
width = custom->width;
|
||||
height = custom->height;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user