mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
Merge pull request #9057 from jdgleaver/rgui-alignment
RGUI: Fix ASAN misaligned address runtime error
This commit is contained in:
commit
650c0e7e0a
@ -2397,7 +2397,7 @@ static void blit_line_regular_shadow(unsigned fb_width, int x, int y,
|
|||||||
*frame_buf_ptr = shadow_color;
|
*frame_buf_ptr = shadow_color;
|
||||||
frame_buf_ptr += fb_width - 1;
|
frame_buf_ptr += fb_width - 1;
|
||||||
/* Small performance hack... */
|
/* Small performance hack... */
|
||||||
*(uint32_t *)frame_buf_ptr = shadow_colour_32;
|
memcpy(frame_buf_ptr, &shadow_colour_32, sizeof(uint32_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2501,7 +2501,7 @@ static void blit_line_extended_shadow(unsigned fb_width, int x, int y,
|
|||||||
*frame_buf_ptr = shadow_color;
|
*frame_buf_ptr = shadow_color;
|
||||||
frame_buf_ptr += fb_width - 1;
|
frame_buf_ptr += fb_width - 1;
|
||||||
/* Small performance hack... */
|
/* Small performance hack... */
|
||||||
*(uint32_t *)frame_buf_ptr = shadow_colour_32;
|
memcpy(frame_buf_ptr, &shadow_colour_32, sizeof(uint32_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2605,7 +2605,7 @@ static void blit_symbol_shadow(unsigned fb_width, int x, int y,
|
|||||||
*frame_buf_ptr = shadow_color;
|
*frame_buf_ptr = shadow_color;
|
||||||
frame_buf_ptr += fb_width - 1;
|
frame_buf_ptr += fb_width - 1;
|
||||||
/* Small performance hack... */
|
/* Small performance hack... */
|
||||||
*(uint32_t *)frame_buf_ptr = shadow_colour_32;
|
memcpy(frame_buf_ptr, &shadow_colour_32, sizeof(uint32_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user