aboutsummaryrefslogtreecommitdiffstats
path: root/unix/x0vncserver/PollingManager.h
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2007-10-09 09:31:41 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2007-10-09 09:31:41 +0000
commit646998a6ce14321d5facefca84602fbdca9a9e62 (patch)
treed3428eaa62b952133fc00911f1b289c06d766af8 /unix/x0vncserver/PollingManager.h
parentd0b15c6d15ddf619dbacb99616eee9bb67feb80e (diff)
downloadtigervnc-646998a6ce14321d5facefca84602fbdca9a9e62.tar.gz
tigervnc-646998a6ce14321d5facefca84602fbdca9a9e62.zip
Optimized detectVideo() function. Now it does the most work only when needed, not each time it's called. The video rectangle (m_videoRect) is now a member variable so it's remembered between calls to poll().
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2352 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/x0vncserver/PollingManager.h')
-rw-r--r--unix/x0vncserver/PollingManager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/x0vncserver/PollingManager.h b/unix/x0vncserver/PollingManager.h
index 1e76acb2..7d5a1230 100644
--- a/unix/x0vncserver/PollingManager.h
+++ b/unix/x0vncserver/PollingManager.h
@@ -113,6 +113,7 @@ private:
char *m_rateMatrix;
char *m_videoFlags;
+ Rect m_videoRect;
unsigned int m_pollingStep;
static const int m_pollingOrder[];