Przeglądaj źródła

The client application no longer needs to call Video::Clea().

legacy
Sam Hocevar sam 15 lat temu
rodzic
commit
0297a2b195
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      src/ticker.cpp

+ 4
- 2
src/ticker.cpp Wyświetl plik

@@ -30,7 +30,7 @@ public:
TickerData() : TickerData() :
todolist(0), autolist(0), todolist(0), autolist(0),
nentities(0), nentities(0),
frame(0), deltams(0), bias(0),
frame(0), deltams(0), bias(0), fps(0),
quit(0), quitframe(0), quitdelay(20), panic(0) quit(0), quitframe(0), quitdelay(20), panic(0)
{ {
for (int i = 0; i < Entity::ALLGROUP_END; i++) for (int i = 0; i < Entity::ALLGROUP_END; i++)
@@ -63,7 +63,7 @@ private:
/* Fixed framerate management */ /* Fixed framerate management */
int frame; int frame;
Timer timer; Timer timer;
float deltams, bias;
float deltams, bias, fps;


/* Shutdown management */ /* Shutdown management */
int quit, quitframe, quitdelay, panic; int quit, quitframe, quitdelay, panic;
@@ -267,6 +267,8 @@ void Ticker::TickDraw()
{ {
Profiler::Start(Profiler::STAT_TICK_DRAW); Profiler::Start(Profiler::STAT_TICK_DRAW);


Video::Clear();

Scene::GetDefault(); Scene::GetDefault();


/* Tick objects for the draw loop */ /* Tick objects for the draw loop */


Ładowanie…
Anuluj
Zapisz