[ion/simulator] Ion::Simulator::Main::relayout() should not draw

That function is supposed to recompute the layout, not perform any
drawing. Namely, presenting the render without a potential previous call
to SDL_RenderClear could lead to some visual glitches.
This commit is contained in:
Romain Goyet
2020-06-25 22:32:31 -04:00
committed by Émilie Feral
parent 026fe120fe
commit 7a9954152a

View File

@@ -115,11 +115,6 @@ void relayout() {
sScreenRect.h = windowHeight;
#else
Layout::recompute(windowWidth, windowHeight);
SDL_Rect backgroundRect;
Layout::getBackgroundRect(&backgroundRect);
SDL_RenderCopy(sRenderer, sBackgroundTexture, nullptr, &backgroundRect);
SDL_RenderPresent(sRenderer);
#endif
setNeedsRefresh();