void systemShowSpeed(int speed) { MainFrame* f = wxGetApp().frame; wxString s; s.Printf(_("%d%%(%d, %d fps)"), speed, systemFrameSkip, frames * speed / 100); switch (showSpeed) { case SS_NONE: f->GetPanel()->osdstat.clear(); break; case SS_PERCENT: f->GetPanel()->osdstat.Printf(_("%d%%"), speed); break; case SS_DETAILED: f->GetPanel()->osdstat = s; break; } wxGetApp().frame->SetStatusText(s, 1); frames = 0; }
void systemDrawScreen() { frames++; MainFrame* mf = wxGetApp().frame; mf->UpdateViewers(); // FIXME: Sm60FPS crap and sondBufferLow crap GameArea* ga = mf->GetPanel(); #ifndef NO_FFMPEG if (ga) ga->AddFrame(pix); #endif if (ga && ga->panel) ga->panel->DrawArea(&pix); }