summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-19 14:28:32 +0100
committerSimon Rettberg2019-02-19 14:28:32 +0100
commit00f225b0136a0b690283aaaa1a05ec033e5ad232 (patch)
tree868ede38bdd981e9359725dfd261601372b5db6b
parentAlso handle special EDID case for init GUI (diff)
downloadbeamergui-00f225b0136a0b690283aaaa1a05ec033e5ad232.tar.gz
beamergui-00f225b0136a0b690283aaaa1a05ec033e5ad232.tar.xz
beamergui-00f225b0136a0b690283aaaa1a05ec033e5ad232.zip
Fix things that I don't know how they even broke
-rw-r--r--src/xx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xx.cpp b/src/xx.cpp
index 4b8f3ee..e5749d5 100644
--- a/src/xx.cpp
+++ b/src/xx.cpp
@@ -148,8 +148,8 @@ ScreenInfo ScreenSetup::initScreenInfo(const OutputInfo *oi) const
si.currentResolution = QSize(QSize(int(oi->mode->width), int(oi->mode->height)));
}
for (int i = 0; i < oi->output->nmode; ++i) {
- if (a->_outputMap.contains(oi->output->modes[i])) {
- auto m = a->_outputMap.value(oi->output->modes[i])->mode;
+ if (a->_modeMap.contains(oi->output->modes[i])) {
+ auto m = a->_modeMap.value(oi->output->modes[i]);
const QSize size(int(m->width), int(m->height));
if (!si.modes.contains(size)) {
si.modes.append(size);