Fix (maybe uninitialized) on weak compilers.

This commit is contained in:
ArthurSonzogni 2020-02-11 22:34:01 +01:00
parent a8fdfafe6a
commit 1f1229564a

View File

@ -144,8 +144,8 @@ void ScreenInteractive::Loop(Component* component) {
void ScreenInteractive::Draw(Component* component) { void ScreenInteractive::Draw(Component* component) {
auto document = component->Render(); auto document = component->Render();
int dimx; int dimx = 0;
int dimy; int dimy = 0;
switch (dimension_) { switch (dimension_) {
case Dimension::Fixed: case Dimension::Fixed:
dimx = dimx_; dimx = dimx_;