From 42098e09adabae345cbbe444fcb0d9d92f12888c Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Mon, 11 Feb 2019 17:16:37 -0500 Subject: [PATCH] C89/vc2005 fix --- gfx/drivers/gl1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/drivers/gl1.c b/gfx/drivers/gl1.c index daf28ec9f0..3cdd9895c1 100644 --- a/gfx/drivers/gl1.c +++ b/gfx/drivers/gl1.c @@ -616,7 +616,7 @@ static bool gl1_gfx_frame(void *data, const void *frame, for (y = 0; y < height; y++) { /* copy lines into top-left portion of larger (power-of-two) buffer */ - memcpy(gl1_video_buf + ((pot_width * (bits / 8)) * y), frame + (pitch * y), width * (bits / 8)); + memcpy(gl1_video_buf + ((pot_width * (bits / 8)) * y), (const unsigned char*)frame + (pitch * y), width * (bits / 8)); } } else if (bits == 16) @@ -1263,11 +1263,11 @@ static uint32_t gl1_get_flags(void *data) static void gl1_set_mvp(void *data, void *shader_data, const void *mat_data) { + const math_matrix_4x4 *mat = (const math_matrix_4x4*)mat_data; + (void)data; (void)shader_data; - const math_matrix_4x4 *mat = (const math_matrix_4x4*)mat_data; - if (!mat) return;