mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(RGUI/GLUI) Cleanups
This commit is contained in:
parent
f9e92439ef
commit
293c915438
@ -123,7 +123,8 @@ static void glui_render_quad(gl_t *gl, int x, int y, int w, int h,
|
||||
|
||||
coords.color = color;
|
||||
|
||||
menu_gl_draw_frame(gl->shader, &coords, &gl->mvp_no_rot, true, glui->textures.white);
|
||||
menu_gl_draw_frame(gl->shader, &coords,
|
||||
&gl->mvp_no_rot, true, glui->textures.white);
|
||||
|
||||
gl->coords.color = gl->white_color_ptr;
|
||||
}
|
||||
@ -214,7 +215,8 @@ static void glui_render_messagebox(const char *message)
|
||||
{
|
||||
const char *msg = list->elems[i].data;
|
||||
if (msg)
|
||||
glui_blit_line(x, y + i * disp->font.size, msg, normal_color, TEXT_ALIGN_CENTER);
|
||||
glui_blit_line(x, y + i * disp->font.size,
|
||||
msg, normal_color, TEXT_ALIGN_CENTER);
|
||||
}
|
||||
|
||||
end:
|
||||
|
@ -191,12 +191,10 @@ static bool init_font(menu_handle_t *menu, const uint8_t *font_bmp_buf)
|
||||
uint8_t *font = (uint8_t *) calloc(1, FONT_OFFSET(256));
|
||||
|
||||
if (!font)
|
||||
{
|
||||
RARCH_ERR("Font memory allocation failed.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
menu->display.font.alloc_framebuf = true;
|
||||
|
||||
for (i = 0; i < 256; i++)
|
||||
{
|
||||
unsigned y = i / 16;
|
||||
@ -614,10 +612,7 @@ static void *rgui_init(void)
|
||||
ret = rguidisp_init_font(menu);
|
||||
|
||||
if (!ret)
|
||||
{
|
||||
RARCH_ERR("No font bitmap or binary, abort");
|
||||
goto error;
|
||||
}
|
||||
|
||||
fill_rect(frame_buf, 0, frame_buf->height,
|
||||
frame_buf->width, 4, gray_filler);
|
||||
|
Loading…
x
Reference in New Issue
Block a user