diff options
author | Brian P. Hinz <bphinz@users.sf.net> | 2017-03-09 19:25:39 -0500 |
---|---|---|
committer | Brian P. Hinz <bphinz@users.sf.net> | 2017-03-10 19:49:47 -0500 |
commit | fc217148aaec81c2e10c1066a31a58b0a4260f51 (patch) | |
tree | d656cd222be38fc46ba4d66b6c36b17ee845b9e7 | |
parent | 610b40170035ce8a012c9a47a9572a80b5b238f1 (diff) | |
download | tigervnc-fc217148aaec81c2e10c1066a31a58b0a4260f51.tar.gz tigervnc-fc217148aaec81c2e10c1066a31a58b0a4260f51.zip |
Fix for "Invalid use of member 'stats' in static member function"
-rw-r--r-- | vncviewer/DesktopWindow.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 1f0f55f2..7941c683 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -1194,7 +1194,7 @@ void DesktopWindow::handleStatsTimeout(void *data) { DesktopWindow *self = (DesktopWindow*)data; - const size_t statsCount = sizeof(stats)/sizeof(stats[0]); + const size_t statsCount = sizeof(self->stats)/sizeof(self->stats[0]); unsigned frame, pixels, pos; unsigned elapsed; @@ -1219,7 +1219,7 @@ void DesktopWindow::handleStatsTimeout(void *data) if (elapsed < 1) elapsed = 1; - memmove(&self->stats[0], &self->stats[1], sizeof(stats[0])*(statsCount-1)); + memmove(&self->stats[0], &self->stats[1], sizeof(self->stats[0])*(statsCount-1)); self->stats[statsCount-1].fps = (frame - self->statsLastFrame) * 1000 / elapsed; self->stats[statsCount-1].pps = (pixels - self->statsLastPixels) * 1000 / elapsed; |