mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Silence warnings
This commit is contained in:
parent
239f3febc6
commit
a39bed3bb1
@ -610,16 +610,13 @@ static bool gl1_gfx_frame(void *data, const void *frame,
|
||||
|
||||
if (draw && gl1_video_buf)
|
||||
{
|
||||
unsigned x, y;
|
||||
|
||||
if (bits == 32)
|
||||
{
|
||||
for (y = 0; y < height; y++)
|
||||
{
|
||||
unsigned y;
|
||||
/* copy lines into top-left portion of larger (power-of-two) buffer */
|
||||
for (y = 0; y < height; y++)
|
||||
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;
|
||||
|
@ -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_;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user