summaryrefslogtreecommitdiffstats
path: root/src/xprivate.h
diff options
context:
space:
mode:
authorSimon Rettberg2018-12-31 15:29:13 +0100
committerSimon Rettberg2018-12-31 15:29:13 +0100
commit15426a68638be35c98af921e033bc825250678e3 (patch)
treea9e2ebfdaf5adc04695632b125f0a8452b4d0840 /src/xprivate.h
parentFix bug (diff)
downloadbeamergui-15426a68638be35c98af921e033bc825250678e3.tar.gz
beamergui-15426a68638be35c98af921e033bc825250678e3.tar.xz
beamergui-15426a68638be35c98af921e033bc825250678e3.zip
Parse EDID for missing modes (ultrawide issue)
For some reason X ignores ultrawide resolutions in the EDID data... Additionally (at least on LG models) the EDID data wrongly says 1080p would be the preferred resolution of the screen, so we now take the physical dimensions of the screen into account and override that decision, if applicable. This assumes square pixels, but that shouldn't be too crazy of an assumption.
Diffstat (limited to 'src/xprivate.h')
-rw-r--r--src/xprivate.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xprivate.h b/src/xprivate.h
index d3e9129..28234ac 100644
--- a/src/xprivate.h
+++ b/src/xprivate.h
@@ -44,7 +44,10 @@ public:
void freeResources();
void updateScreenResources();
- bool readEdid(OutputInfo* output);
+ void addMissingEdidResolutions();
+ bool getEdid(RROutput outputId, unsigned char *buffer, unsigned long *size);
+ bool readEdid(OutputInfo* output);
+ void addMissingModesFromEdid(XRRScreenResources *res, RROutput outputId, unsigned char *data);
void disconnectAllCrtcs();
XRRModeInfo* getPreferredMode(OutputInfo *oi, XRRModeInfo *fallback = nullptr) const;
void setScreenSize(const QSize &size);