]> source.dussan.org Git - tigervnc.git/commitdiff
Overriding the grabRegion function in XPixelBuffer. It will perform screen grabbing...
authorConstantin Kaplinsky <const@tightvnc.com>
Wed, 26 Dec 2007 19:17:02 +0000 (19:17 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Wed, 26 Dec 2007 19:17:02 +0000 (19:17 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2382 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/x0vncserver/Makefile.in
unix/x0vncserver/XPixelBuffer.cxx [new file with mode: 0644]
unix/x0vncserver/XPixelBuffer.h

index 8ece5516ca732709f3f288dac21a82b6725d830b..ade15268e8ddfc7383f459b7a193af7fde180311 100644 (file)
@@ -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 (file)
index 0000000..def090c
--- /dev/null
@@ -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)
+{
+}
+
index 44377df7f610de6ca844235ba013290c2466c01e..29b82f520ff0d312be49c7e683f473b9c790f093 100644 (file)
@@ -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;
 };