if (get_level()->img_bkgd)
get_level()->img_bkgd->draw(0, 0);
else
- clearscreen(0, 0, 0);
+ drawgradient(get_level()->bkgd_top, get_level()->bkgd_bottom);
sprintf(str, "%s", world->get_level()->name.c_str());
gold_text->drawf(str, 0, 200, A_HMIDDLE, A_TOP, 1);
if (get_level()->img_bkgd)
get_level()->img_bkgd->draw(0, 0);
else
- clearscreen(0, 0, 0);
+ drawgradient(get_level()->bkgd_top, get_level()->bkgd_bottom);
blue_text->drawf("GAMEOVER", 0, 200, A_HMIDDLE, A_TOP, 1);
if (get_level()->img_bkgd)
get_level()->img_bkgd->draw(0, 0);
else
- clearscreen(0, 0, 0);
+ drawgradient(get_level()->bkgd_top, get_level()->bkgd_bottom);
blue_text->drawf("Result:", 0, 200, A_HMIDDLE, A_TOP, 1);
}
else
{
- /* Quick hack to make sure an image is loaded, when we are freeing it afterwards. */
- load_image(&img_bkgd, theme,"solid0.png", IGNORE_ALPHA);
+ img_bkgd = 0;
}
}