(Zarch) Some refactors

This commit is contained in:
twinaphex 2015-10-02 03:55:23 +02:00
parent 80e129d696
commit cb4f032dd7

View File

@ -234,10 +234,12 @@ static unsigned zui_hash(zui_t *zui, const char *s)
return zui->hash = hval;
}
#if 0
static uint32_t zui_rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a)
{
return FONT_COLOR_RGBA(r, g, b, a);
}
#endif
static void zui_set_color(GLfloat *rgbaf, size_t count, uint32_t color)
{
@ -664,12 +666,15 @@ static void zui_render(zui_t *zui)
render_sidebar(zui);
if (layout == LAY_HOME)
switch (layout)
{
case LAY_HOME:
render_lay_root(global, zui);
}
else if (layout == LAY_PICK_CORE)
{
break;
case LAY_SETTINGS:
/* FIXME/TODO - stub */
break;
case LAY_PICK_CORE:
if (zui->pick_supported == 1)
{
fputs("Core loading is not implemented yet, sorry.", stderr);
@ -707,10 +712,9 @@ static void zui_render(zui_t *zui)
zui_list_item(zui, 0, 60, "Content unsupported");
}
}
break;
}
zui_finish(zui);
}