mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
committed by
Émilie Feral
parent
026fe120fe
commit
7a9954152a
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user