diff options
author | Pierre Ossman <ossman@cendio.se> | 2017-02-19 15:48:17 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2017-02-22 16:58:10 +0100 |
commit | 6a1a0d0c578e39338e757edf59cf8806a9d86b0f (patch) | |
tree | a82ede30f7e9d1f36b3169acb6a7a6a4f936ad78 /common/rfb/VNCServer.h | |
parent | e20cf62bbdefd48979603105d60c3a170eb2ece6 (diff) | |
download | tigervnc-6a1a0d0c578e39338e757edf59cf8806a9d86b0f.tar.gz tigervnc-6a1a0d0c578e39338e757edf59cf8806a9d86b0f.zip |
Change cursor API to use RGBA data
This will allow us to use better formats that preserve the entire
alpha channel.
Diffstat (limited to 'common/rfb/VNCServer.h')
-rw-r--r-- | common/rfb/VNCServer.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/common/rfb/VNCServer.h b/common/rfb/VNCServer.h index c76e5c9c..982a4ff5 100644 --- a/common/rfb/VNCServer.h +++ b/common/rfb/VNCServer.h @@ -64,16 +64,10 @@ namespace rfb { virtual void closeClients(const char* reason) = 0; // setCursor() tells the server that the cursor has changed. The - // cursorData argument contains width*height pixel values in the pixel - // buffer's format. The mask argument is a bitmask with a 1-bit meaning - // the corresponding pixel in cursorData is valid. The mask consists of - // left-to-right, top-to-bottom scanlines, where each scanline is padded to - // a whole number of bytes [(width+7)/8]. Within each byte the most - // significant bit represents the leftmost pixel, and the bytes are simply - // in left-to-right order. The server takes its own copy of the data in - // cursorData and mask. + // cursorData argument contains width*height rgba quadruplets with + // non-premultiplied alpha. virtual void setCursor(int width, int height, const Point& hotspot, - const void* cursorData, const void* mask) = 0; + const rdr::U8* cursorData) = 0; // setCursorPos() tells the server the current position of the cursor. virtual void setCursorPos(const Point& p) = 0; |