diff options
Diffstat (limited to 'common/rfb/SMsgReader.cxx')
-rw-r--r-- | common/rfb/SMsgReader.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/rfb/SMsgReader.cxx b/common/rfb/SMsgReader.cxx index f89e0f4f..0e57ea76 100644 --- a/common/rfb/SMsgReader.cxx +++ b/common/rfb/SMsgReader.cxx @@ -95,3 +95,18 @@ void SMsgReader::readClientCutText() is->readBytes(ca.buf, len); handler->clientCutText(ca.buf, len); } + +void SMsgReader::readEnableContinuousUpdates() +{ + bool enable = is->readU8(); + int x = is->readU16(); + int y = is->readU16(); + int w = is->readU16(); + int h = is->readU16(); + if (enable) { + handler->enableContinuousUpdates(Rect(x, y, x+w, y+h)); + } else { + handler->disableContinuousUpdates(); + } +} + |