Browse Source

Fixed a problem with low performance in new polling code.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2347 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v0.0.90
Constantin Kaplinsky 16 years ago
parent
commit
29d3205026
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      unix/x0vncserver/PollingManager.cxx

+ 5
- 1
unix/x0vncserver/PollingManager.cxx View File

@@ -274,7 +274,11 @@ int PollingManager::checkRow(int x, int y, int w, bool *pmxChanged)
int bytesPerPixel = m_image->xim->bits_per_pixel / 8;
int bytesPerLine = m_image->xim->bytes_per_line;

getRow(x, y, w);
if (x == 0 && w == m_width) {
getFullRow(y); // use more efficient method if possible
} else {
getRow(x, y, w);
}

char *ptr_old = m_image->xim->data + y * bytesPerLine + x * bytesPerPixel;
char *ptr_new = m_rowImage->xim->data;

Loading…
Cancel
Save