Remove dead code with full_x/full_y.

Very confusing and no longer serves any purpose anyways.
This commit is contained in:
Hans-Kristian Arntzen 2016-03-29 15:28:13 +02:00
parent 577f210b30
commit 1ff4445ba0
4 changed files with 12 additions and 28 deletions

View File

@ -223,8 +223,6 @@ typedef struct gl
bool keep_aspect;
unsigned rotation;
unsigned full_x, full_y;
struct video_viewport vp;
unsigned vp_out_width;
unsigned vp_out_height;

View File

@ -259,7 +259,6 @@ typedef struct vk
{
vulkan_context_t *context;
video_info_t video;
unsigned full_x, full_y;
unsigned tex_w, tex_h;
VkFormat tex_fmt;

View File

@ -2660,6 +2660,7 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
gfx_ctx_mode_t mode;
gfx_ctx_input_t inp;
unsigned interval, mip_level;
unsigned full_x, full_y;
video_shader_ctx_wrap_t wrap_info;
video_shader_ctx_filter_t shader_filter;
video_shader_ctx_info_t shader_info;
@ -2687,12 +2688,12 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
gfx_ctx_ctl(GFX_CTL_GET_VIDEO_SIZE, &mode);
gl->full_x = mode.width;
gl->full_y = mode.height;
full_x = mode.width;
full_y = mode.height;
mode.width = 0;
mode.height = 0;
RARCH_LOG("Detecting screen resolution %ux%u.\n", gl->full_x, gl->full_y);
RARCH_LOG("Detecting screen resolution %ux%u.\n", full_x, full_y);
interval = video->vsync ? settings->video.swap_interval : 0;
@ -2703,8 +2704,8 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
if (video->fullscreen && (win_width == 0) && (win_height == 0))
{
win_width = gl->full_x;
win_height = gl->full_y;
win_width = full_x;
win_height = full_y;
}
mode.width = win_width;
@ -2763,13 +2764,6 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
RARCH_LOG("GL: Using resolution %ux%u\n", temp_width, temp_height);
if (gl->full_x || gl->full_y)
{
/* We got bogus from gfx_ctx_get_video_size. Replace. */
gl->full_x = temp_width;
gl->full_y = temp_height;
}
video_driver_ctl(RARCH_DISPLAY_CTL_HW_CONTEXT_GET, &hwr);
gl->vertex_ptr = hwr->bottom_left_origin

View File

@ -912,6 +912,7 @@ static void *vulkan_init(const video_info_t *video,
gfx_ctx_mode_t mode;
gfx_ctx_input_t inp;
unsigned interval;
unsigned full_x, full_y;
unsigned win_width;
unsigned win_height;
unsigned temp_width = 0;
@ -931,12 +932,12 @@ static void *vulkan_init(const video_info_t *video,
gfx_ctx_ctl(GFX_CTL_SET, (void*)ctx_driver);
gfx_ctx_ctl(GFX_CTL_GET_VIDEO_SIZE, &mode);
vk->full_x = mode.width;
vk->full_y = mode.height;
full_x = mode.width;
full_y = mode.height;
mode.width = 0;
mode.height = 0;
RARCH_LOG("Detecting screen resolution %ux%u.\n", vk->full_x, vk->full_y);
RARCH_LOG("Detecting screen resolution %ux%u.\n", full_x, full_y);
interval = video->vsync ? settings->video.swap_interval : 0;
gfx_ctx_ctl(GFX_CTL_SWAP_INTERVAL, &interval);
@ -945,8 +946,8 @@ static void *vulkan_init(const video_info_t *video,
if (video->fullscreen && (win_width == 0) && (win_height == 0))
{
win_width = vk->full_x;
win_height = vk->full_y;
win_width = full_x;
win_height = full_y;
}
mode.width = win_width;
@ -965,14 +966,6 @@ static void *vulkan_init(const video_info_t *video,
RARCH_LOG("Vulkan: Using resolution %ux%u\n", temp_width, temp_height);
/* FIXME: Is this check right? */
if (vk->full_x || vk->full_y)
{
/* We got bogus from gfx_ctx_get_video_size. Replace. */
vk->full_x = temp_width;
vk->full_y = temp_height;
}
gfx_ctx_ctl(GFX_CTL_GET_CONTEXT_DATA, &vk->context);
vk->vsync = video->vsync;