diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-04-23 09:11:02 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-04-23 09:12:57 (GMT) |
commit | e8974548e30a28738b46c681a7e50c27aab27db6 (patch) | |
tree | e20491714e3d437638b1c62e958e61dd32b5488d /tools/qvfb/qvfbview.h | |
parent | 74934cba48910e366d96e4e596e8676d8434fe24 (diff) | |
download | Qt-e8974548e30a28738b46c681a7e50c27aab27db6.zip Qt-e8974548e30a28738b46c681a7e50c27aab27db6.tar.gz Qt-e8974548e30a28738b46c681a7e50c27aab27db6.tar.bz2 |
Add BGR format to qvfb
Diffstat (limited to 'tools/qvfb/qvfbview.h')
-rw-r--r-- | tools/qvfb/qvfbview.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qvfb/qvfbview.h b/tools/qvfb/qvfbview.h index d533613..1d43bdc 100644 --- a/tools/qvfb/qvfbview.h +++ b/tools/qvfb/qvfbview.h @@ -77,6 +77,7 @@ public: virtual int displayHeight() const = 0; virtual int displayDepth() const = 0; virtual PixelFormat displayFormat() const { return DefaultFormat; } + virtual bool rgbSwapped() const { return false; } virtual Rotation displayRotation() const = 0; virtual void setGamma(double gr, double gg, double gb) = 0; @@ -105,6 +106,7 @@ public slots: virtual void skinKeyPressEvent( int code, const QString& text, bool autorep=FALSE ) = 0; virtual void skinKeyReleaseEvent( int code, const QString& text, bool autorep=FALSE ) = 0; virtual void setViewFormat(PixelFormat) {} + virtual void setRgbSwapped( bool ) {}; virtual void embedDisplay(WId) {} }; @@ -120,6 +122,7 @@ public: int displayHeight() const; int displayDepth() const; PixelFormat displayFormat() const; + bool rgbSwapped() const { return rgb_swapped; } Rotation displayRotation() const; bool touchScreenEmulation() const { return emulateTouchscreen; } @@ -151,6 +154,7 @@ public slots: void skinKeyPressEvent(int code, const QString& text, bool autorep=FALSE); void skinKeyReleaseEvent(int code, const QString& text, bool autorep=FALSE); void setViewFormat(PixelFormat); + void setRgbSwapped(bool b) { rgb_swapped = b; } #ifdef Q_WS_X11 void embedDisplay(WId id); #endif @@ -180,6 +184,7 @@ private: void setDirty(const QRect&); int viewdepth; // "faked" depth PixelFormat viewFormat; + bool rgb_swapped; int rsh; int gsh; int bsh; |