Silence warnings

This commit is contained in:
twinaphex 2019-02-21 21:31:29 +01:00
parent 239f3febc6
commit a39bed3bb1
2 changed files with 3 additions and 7 deletions

View File

@ -610,15 +610,12 @@ static bool gl1_gfx_frame(void *data, const void *frame,
if (draw && gl1_video_buf)
{
unsigned x, y;
if (bits == 32)
{
unsigned y;
/* copy lines into top-left portion of larger (power-of-two) buffer */
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), (const unsigned char*)frame + (pitch * y), width * (bits / 8));
}
}
else if (bits == 16)
conv_rgb565_argb8888(gl1_video_buf, frame, width, height, pot_width * sizeof(unsigned), pitch);
@ -647,7 +644,6 @@ static bool gl1_gfx_frame(void *data, const void *frame,
if (gl1_menu_frame && video_info->menu_is_alive)
{
unsigned x, y;
frame_to_copy = NULL;
width = gl1_menu_width;
height = gl1_menu_height;

View File

@ -386,7 +386,7 @@ void conv_rgba4444_argb8888(void *output_, const void *input_,
int width, int height,
int out_stride, int in_stride)
{
int h, w;
int h;
const uint16_t *input = (const uint16_t*)input_;
uint32_t *output = (uint32_t*)output_;