diff options
author | Simon Rettberg | 2018-09-10 13:37:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-09-10 13:37:54 +0200 |
commit | a9b92d59146ee87c365562d505cff66cf395f1f2 (patch) | |
tree | fda2913cd2383ef757d039059ab817f67f622e99 /src | |
parent | Fixes for adding new modes, selecting best mode for clone without EDID (diff) | |
download | beamergui-a9b92d59146ee87c365562d505cff66cf395f1f2.tar.gz beamergui-a9b92d59146ee87c365562d505cff66cf395f1f2.tar.xz beamergui-a9b92d59146ee87c365562d505cff66cf395f1f2.zip |
Fix compilation of main.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 98e52d4..fabf36c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -57,14 +57,12 @@ int main(int argc, char *argv[]) ScreenSetup::inst()->initModes(); - ScreenMode currentMode; if (CommandLine::center()) { ScreenSetup::inst()->setCenteredClone(); - currentMode = ScreenMode::Clone; } else if (CommandLine::autoSetup()) { - currentMode = ScreenSetup::inst()->setDefaultMode(CommandLine::testMode()); + ScreenSetup::inst()->setDefaultMode(CommandLine::testMode()); } else { - currentMode = ScreenSetup::inst()->getCurrentMode(); + ScreenSetup::inst()->getCurrentMode(); } Widget *w = nullptr; |