From b3530d45848515cf180978767df15ea0a799465c Mon Sep 17 00:00:00 2001 From: Constantin Kaplinsky Date: Wed, 26 Dec 2007 19:17:02 +0000 Subject: [PATCH] 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 --- unix/x0vncserver/Makefile.in | 2 +- unix/x0vncserver/XPixelBuffer.cxx | 28 ++++++++++++++++++++++++++++ unix/x0vncserver/XPixelBuffer.h | 3 +++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 unix/x0vncserver/XPixelBuffer.cxx 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 + +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; }; -- 2.39.5