diff options
author | Simon Rettberg | 2022-10-27 14:54:41 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-10-27 14:54:41 +0200 |
commit | 9874a69997b03eec0c2825f59bae6fc3b6b4fd46 (patch) | |
tree | 51cd4edfe41dee9ac1bf2469be3241a8e436cdf4 /src/xprivate.h | |
parent | Fix TMDS clock limiting if DTD info is missing (Default to 165MHz) (diff) | |
download | beamergui-9874a69997b03eec0c2825f59bae6fc3b6b4fd46.tar.gz beamergui-9874a69997b03eec0c2825f59bae6fc3b6b4fd46.tar.xz beamergui-9874a69997b03eec0c2825f59bae6fc3b6b4fd46.zip |
Remove projector resolution copy; use --scale-from instead
Instead of adding random resolutions to outputs that don't
report supporting them in the first place, if using
cloned output, scale the image to the screen's native resolution.
Diffstat (limited to 'src/xprivate.h')
-rw-r--r-- | src/xprivate.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xprivate.h b/src/xprivate.h index c10832e..6400ced 100644 --- a/src/xprivate.h +++ b/src/xprivate.h @@ -54,9 +54,8 @@ public: QList<RRMode> getOutputModeForResolution(const XRROutputInfo *output, unsigned int width, unsigned int height) const; QList<RRMode> getOutputModeForResolution(const XRROutputInfo *output, const QSize &resolution) const; RRCrtc getFreeCrtc(const XRROutputInfo* output) const; - XRRModeInfo* setOutputResolution(QStringList &args, OutputInfo *oi, int x, int y, const QSize &size); + XRRModeInfo* setOutputResolution(QStringList &args, OutputInfo *oi, int x, int y, const QSize &size, const QSize &scaleFrom = {}); QList<QSize> getTotalSize(const QList<OutputInfo*> &projectors, const QList<OutputInfo*> &screens) const; - void copyModesToAll(RROutput id, int num); bool addResolutionToOutput(OutputInfo *oi, const QSize &res); Display* _display; |