예제 #1
0
void cefiveuiRedraw(CEFiveUi *prUi) {
    CEFiveConfig* prCfg = NULL;
    ColorConfig* prColor = NULL;

    if (prUi == NULL) {
        return;
    }
    prCfg = prUi->prCEConfig;
    if (prCfg != NULL) {
        prColor = cefiveconfig_get_panelcolor(prCfg);
    } else {
        prColor = &prUi->config.color;
    }
    if (prUi->drawn == 0) {
        //pspDebugScreenInitEx(prUi->vram, 0, 0);
        pspDebugScreenSetBackColor(prColor->background);
        pspDebugScreenClear();
    }
    if (prUi->appletmenu.visible == 1) {
        draw_applet_menu(prUi);
    } else {
        draw_titlebar(prUi);
        draw_applet(prUi);
    }
    prUi->drawn = 1;
}
예제 #2
0
파일: display.cpp 프로젝트: PhilT001/pms
/*
 * Redraws all visible windows
 */
bool
Display::draw()
{
	/* FIXME: check if drawing is needed */
	draw_topbar();
	draw_titlebar();
	draw_main_window();
	draw_position_readout();
	/* FIXME: what about statusbar? */
	return true;
}