Ejemplo n.º 1
0
static int vesa_load_background(lua_State *L)
{
  const char *filename = luaL_checkstring(L, 1);

  vesacon_load_background(filename);

  return 0;
}
Ejemplo n.º 2
0
int draw_background(const char *what)
{
  if (!what)
    return vesacon_default_background();
  else if (what[0] == '#')
    return vesacon_set_background(parse_argb((char **)&what));
  else
    return vesacon_load_background(what);
}