handler->setCursor(width, height, hotspot, data.buf, mask.buf);
}
-void CMsgReader::readSetDesktopName(int x, int y, int w, int h)
-{
- char* name = is->readString();
-
- if (x || y || w || h) {
- fprintf(stderr, "Ignoring DesktopName rect with non-zero position/size\n");
- } else {
- handler->setName(name);
- }
-
- delete [] name;
-}
-
rdr::U8* CMsgReader::getImageBuf(int required, int requested, int* nPixels)
{
int requiredBytes = required * (handler->cp.pf().bpp / 8);
virtual void readCopyRect(const Rect& r);
virtual void readSetCursor(int width, int height, const Point& hotspot);
- virtual void readSetDesktopName(int x, int y, int w, int h);
CMsgReader(CMsgHandler* handler, rdr::InStream* is);
nUpdateRectsLeft = is->readU16();
handler->framebufferUpdateStart();
}
+
+void CMsgReaderV3::readSetDesktopName(int x, int y, int w, int h)
+{
+ char* name = is->readString();
+
+ if (x || y || w || h) {
+ fprintf(stderr, "Ignoring DesktopName rect with non-zero position/size\n");
+ } else {
+ handler->setName(name);
+ }
+
+ delete [] name;
+}
+
virtual void readServerInit();
virtual void readMsg();
private:
- void readFramebufferUpdate();
+ virtual void readFramebufferUpdate();
+ virtual void readSetDesktopName(int x, int y, int w, int h);
int nUpdateRectsLeft;
};
}