diff options
author | Peter Åstrand (astrand) <astrand@cendio.se> | 2017-10-16 15:18:00 +0200 |
---|---|---|
committer | Peter Åstrand (astrand) <astrand@cendio.se> | 2017-11-08 10:40:13 +0100 |
commit | dcd0b139652b3c6229662311c05b05e0841a6fc4 (patch) | |
tree | 04ed6e858ceb2a129daaecc037664e33001c10f3 /unix/x0vncserver/Image.h | |
parent | 453da22b872c703e34ec0e6adf735080447b2129 (diff) | |
download | tigervnc-dcd0b139652b3c6229662311c05b05e0841a6fc4.tar.gz tigervnc-dcd0b139652b3c6229662311c05b05e0841a6fc4.zip |
Removed IRIX/Solaris overlay support
Legacy systems.
Diffstat (limited to 'unix/x0vncserver/Image.h')
-rw-r--r-- | unix/x0vncserver/Image.h | 86 |
1 files changed, 1 insertions, 85 deletions
diff --git a/unix/x0vncserver/Image.h b/unix/x0vncserver/Image.h index 675b1fa6..23502eb9 100644 --- a/unix/x0vncserver/Image.h +++ b/unix/x0vncserver/Image.h @@ -122,88 +122,6 @@ protected: }; // -// IrixOverlayShmImage uses ReadDisplay extension of an X server to -// get truecolor image data, regardless of the default X visual type. -// This method is available on Irix only. -// - -#ifdef HAVE_READDISPLAY - -#include <X11/extensions/readdisplay.h> - -class IrixOverlayShmImage : public ShmImage { - -public: - - IrixOverlayShmImage(Display *d); - IrixOverlayShmImage(Display *d, int width, int height); - virtual ~IrixOverlayShmImage(); - - virtual const char *className() const { - return "IrixOverlayShmImage"; - } - virtual const char *classDesc() const { - return "IRIX-specific SHM-aware overlay image"; - } - - virtual void get(Window wnd, int x = 0, int y = 0); - virtual void get(Window wnd, int x, int y, int w, int h, - int dst_x = 0, int dst_y = 0); - -protected: - - void Init(int width, int height); - - // This method searches available X visuals for one that matches - // actual pixel format returned by XReadDisplay(). Returns true on - // success, false if there is no matching visual. On success, visual - // information is placed into the structure pointed by vinfo_ret. - bool getOverlayVisualInfo(XVisualInfo *vinfo_ret); - - ShmReadDisplayBuf *readDisplayBuf; - -}; - -#endif // HAVE_READDISPLAY - -// -// SolarisOverlayImage uses SUN_OVL extension of an X server to get -// truecolor image data, regardless of the default X visual type. This -// method is available on Solaris only. -// - -#ifdef HAVE_SUN_OVL - -#include <X11/extensions/transovl.h> - -class SolarisOverlayImage : public Image { - -public: - - SolarisOverlayImage(Display *d); - SolarisOverlayImage(Display *d, int width, int height); - virtual ~SolarisOverlayImage(); - - virtual const char *className() const { - return "SolarisOverlayImage"; - } - virtual const char *classDesc() const { - return "Solaris-specific non-SHM overlay image"; - } - - virtual void get(Window wnd, int x = 0, int y = 0); - virtual void get(Window wnd, int x, int y, int w, int h, - int dst_x = 0, int dst_y = 0); - -protected: - - void Init(int width, int height); - -}; - -#endif // HAVE_SUN_OVL - -// // ImageFactory class is used to produce instances of Image-derived // objects that are most appropriate for current X server and user // settings. @@ -213,18 +131,16 @@ class ImageFactory { public: - ImageFactory(bool allowShm, bool allowOverlay); + ImageFactory(bool allowShm); virtual ~ImageFactory(); bool isShmAllowed() { return mayUseShm; } - bool isOverlayAllowed() { return mayUseOverlay; } virtual Image *newImage(Display *d, int width, int height); protected: bool mayUseShm; - bool mayUseOverlay; }; |