Minor code refactoring -- new flagVideoArea() function, minor naming and formatting changes.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2384 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/x0vncserver/PollingManager.h b/unix/x0vncserver/PollingManager.h
index e3a29b0..fd2c2e0 100644
--- a/unix/x0vncserver/PollingManager.h
+++ b/unix/x0vncserver/PollingManager.h
@@ -97,14 +97,14 @@
m_offsetLeft + x, m_offsetTop + y, 1, h);
}
- int checkRow(int x, int y, int w, bool *pmxChanged);
- void sendChanges(bool *pmxChanged);
- bool handleVideo(bool *pmxChanged);
+ int checkRow(int x, int y, int w, bool *pChangeFlags);
+ void sendChanges(bool *pChangeFlags);
+ bool handleVideo(bool *pChangeFlags);
+ void flagVideoArea(bool *pChangeFlags, bool value);
+
+ // Video detection functions.
void detectVideo();
-
void getVideoAreaRect(Rect *result);
-
- // Functions called by getVideoAreaRect().
void constructLengthMatrices(int **pmx_h, int **pmx_v);
void destroyLengthMatrices(int *mx_h, int *mx_v);
void findMaxLocalRect(Rect *r, int *mx_h, int *mx_v);