This commit is contained in:
twinaphex 2016-06-28 11:04:59 +02:00
parent 7a745c3f70
commit 5ba74302b2
3 changed files with 3 additions and 3 deletions

View File

@ -206,7 +206,7 @@ static void blit_line(int x, int y,
if (!rgui_framebuf_data) if (!rgui_framebuf_data)
return; return;
while (*message) while (!string_is_empty(message))
{ {
const uint8_t *font_fb = menu_display_get_font_framebuffer(); const uint8_t *font_fb = menu_display_get_font_framebuffer();
uint32_t symbol = string_walk(&message); uint32_t symbol = string_walk(&message);

View File

@ -2735,7 +2735,7 @@ static void xmb_context_reset_background(const char *iconpath)
fill_pathname_join(path, iconpath, "bg.png", sizeof(path)); fill_pathname_join(path, iconpath, "bg.png", sizeof(path));
if (*settings->path.menu_wallpaper) if (!string_is_empty(settings->path.menu_wallpaper))
strlcpy(path, settings->path.menu_wallpaper, sizeof(path)); strlcpy(path, settings->path.menu_wallpaper, sizeof(path));
if (path_file_exists(path)) if (path_file_exists(path))

View File

@ -254,7 +254,7 @@ static unsigned zarch_zui_hash(zui_t *zui, const char *s)
{ {
unsigned hval = zui->hash; unsigned hval = zui->hash;
while(*s!=0) while(*s != 0)
{ {
hval+=*s++; hval+=*s++;
hval+=(hval<<10); hval+=(hval<<10);