l'espoir renaît????
This commit is contained in:
@@ -19,7 +19,6 @@ GraphApp::GraphApp() {
|
||||
|
||||
void GraphApp::run() {
|
||||
changeVideoMode(*this->renderWindow, this->settings->getVideoMode());
|
||||
std::cout << renderWindow->getSize().x << " " << renderWindow->getSize().y << std::endl;
|
||||
this->menuStack->push(std::make_shared<MainAppMenu>(this->menuStack, this->settings, this->renderWindow));
|
||||
|
||||
bool quit = false;
|
||||
@@ -34,7 +33,6 @@ void GraphApp::run() {
|
||||
|
||||
if (!quit) {
|
||||
if (clock.getElapsedTime().asMilliseconds() > timeAtNextFrame) {
|
||||
timeAtNextFrame += TIME_BETWEEN_FRAMES;
|
||||
this->menuStack->top()->computeFrame();
|
||||
|
||||
if (this->menuStack->empty()) {
|
||||
@@ -43,6 +41,10 @@ void GraphApp::run() {
|
||||
else {
|
||||
this->menuStack->top()->drawFrame();
|
||||
}
|
||||
|
||||
while (clock.getElapsedTime().asMilliseconds() > timeAtNextFrame) {
|
||||
timeAtNextFrame += TIME_BETWEEN_FRAMES;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user