mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
caca: don't leave X coord uninitialized with unknown font alignment
This commit is contained in:
parent
b9eb1c0222
commit
5c77937dad
@ -112,16 +112,15 @@ static void caca_render_msg(video_frame_info_t *video_info,
|
||||
|
||||
switch (align)
|
||||
{
|
||||
case TEXT_ALIGN_LEFT:
|
||||
newX = x * width * scale;
|
||||
break;
|
||||
case TEXT_ALIGN_RIGHT:
|
||||
newX = (x * width * scale) - strlen(msg);
|
||||
break;
|
||||
case TEXT_ALIGN_CENTER:
|
||||
newX = (x * width * scale) - (strlen(msg) / 2);
|
||||
break;
|
||||
case TEXT_ALIGN_LEFT:
|
||||
default:
|
||||
newX = x * width * scale;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user