diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2007-12-26 19:17:02 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2007-12-26 19:17:02 +0000 |
commit | b3530d45848515cf180978767df15ea0a799465c (patch) | |
tree | 91004863ee257df5b5b789354b5c86eb92f13536 /unix/x0vncserver | |
parent | 614c7b50f729766b6ec34c771e83c502feed1b6b (diff) | |
download | tigervnc-b3530d45848515cf180978767df15ea0a799465c.tar.gz tigervnc-b3530d45848515cf180978767df15ea0a799465c.zip |
Overriding the grabRegion function in XPixelBuffer. It will perform screen grabbing right before sending an update.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2382 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/x0vncserver')
-rw-r--r-- | unix/x0vncserver/Makefile.in | 2 | ||||
-rw-r--r-- | unix/x0vncserver/XPixelBuffer.cxx | 28 | ||||
-rw-r--r-- | unix/x0vncserver/XPixelBuffer.h | 3 |
3 files changed, 32 insertions, 1 deletions
diff --git a/unix/x0vncserver/Makefile.in b/unix/x0vncserver/Makefile.in index 8ece5516..ade15268 100644 --- a/unix/x0vncserver/Makefile.in +++ b/unix/x0vncserver/Makefile.in @@ -1,6 +1,6 @@ SRCS = Image.cxx TimeMillis.cxx PollingScheduler.cxx PollingManager.cxx \ - Geometry.cxx \ + Geometry.cxx XPixelBuffer.cxx \ x0vncserver.cxx ../vncconfig/QueryConnectDialog.cxx OBJS = $(SRCS:.cxx=.o) diff --git a/unix/x0vncserver/XPixelBuffer.cxx b/unix/x0vncserver/XPixelBuffer.cxx new file mode 100644 index 00000000..def090ce --- /dev/null +++ b/unix/x0vncserver/XPixelBuffer.cxx @@ -0,0 +1,28 @@ +/* Copyright (C) 2007 Constantin Kaplinsky. All Rights Reserved. + * + * This is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, + * USA. + */ + +// +// XPixelBuffer.cxx +// + +#include <x0vncserver/XPixelBuffer.h> + +void XPixelBuffer::grabRegion(const Region& region) +{ +} + diff --git a/unix/x0vncserver/XPixelBuffer.h b/unix/x0vncserver/XPixelBuffer.h index 44377df7..29b82f52 100644 --- a/unix/x0vncserver/XPixelBuffer.h +++ b/unix/x0vncserver/XPixelBuffer.h @@ -43,6 +43,9 @@ public: virtual int getStride() const { return stride; } + // Override PixelBuffer's function. + virtual void grabRegion(const rfb::Region& region); + protected: int stride; }; |