mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
(drivers_display) Cleanups
This commit is contained in:
parent
3ee307e743
commit
7a794b2ef1
@ -51,12 +51,13 @@ static void glui_blit_line(float x, float y, const char *message, bool green)
|
||||
|
||||
params.x = x / gl->win_width;
|
||||
params.y = 1.0f - y / gl->win_height;
|
||||
|
||||
params.scale = 1.0;
|
||||
params.color = green ? FONT_COLOR_RGBA(100, 255, 100, 255)
|
||||
: FONT_COLOR_RGBA(255, 255, 255, 255);
|
||||
params.color = FONT_COLOR_RGBA(255, 255, 255, 255);
|
||||
params.full_screen = true;
|
||||
|
||||
if (green)
|
||||
params.color = FONT_COLOR_RGBA(100, 255, 100, 255);
|
||||
|
||||
if (driver.video_data && driver.video_poke
|
||||
&& driver.video_poke->set_osd_msg)
|
||||
driver.video_poke->set_osd_msg(driver.video_data,
|
||||
|
@ -51,13 +51,13 @@ static void ios_free(void *data)
|
||||
|
||||
static int menu_ios_iterate(unsigned action)
|
||||
{
|
||||
ios_handle_t *ih = NULL;
|
||||
ios_handle_t *ios = NULL;
|
||||
if (!driver.menu)
|
||||
return 0;
|
||||
|
||||
ih = (ios_handle_t*)driver.menu->userdata;
|
||||
if (ih->switch_to_ios)
|
||||
ih->switch_to_ios();
|
||||
ios = (ios_handle_t*)driver.menu->userdata;
|
||||
if (ios->switch_to_ios)
|
||||
ios->switch_to_ios();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -150,8 +150,9 @@ static void blit_line(int x, int y, const char *message, bool green)
|
||||
bool col = (driver.menu->font[FONT_OFFSET
|
||||
((unsigned char)*message) + offset] & rem);
|
||||
|
||||
if (col)
|
||||
{
|
||||
if (!col)
|
||||
continue;
|
||||
|
||||
rgui->frame_buf[(y + j) *
|
||||
(rgui->frame_buf_pitch >> 1) + (x + i)] = green ?
|
||||
#if defined(GEKKO)|| defined(PSP)
|
||||
@ -161,7 +162,6 @@ static void blit_line(int x, int y, const char *message, bool green)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
x += FONT_WIDTH_STRIDE;
|
||||
message++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user