LibVNCServer/LibVNCClient
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cursor.c File Reference
#include <rfb/rfbclient.h>
+ Include dependency graph for cursor.c:

Go to the source code of this file.

Macros

#define OPER_SAVE   0
 
#define OPER_RESTORE   1
 
#define RGB24_TO_PIXEL(bpp, r, g, b)
 

Functions

rfbBool HandleCursorShape (rfbClient *client, int xhot, int yhot, int width, int height, uint32_t enc)
 

Macro Definition Documentation

#define OPER_RESTORE   1

Definition at line 29 of file cursor.c.

#define OPER_SAVE   0

Definition at line 28 of file cursor.c.

#define RGB24_TO_PIXEL (   bpp,
  r,
  g,
 
)
Value:
((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \
<< client->format.redShift | \
(((uint##bpp##_t)(g) & 0xFF) * client->format.greenMax + 127) / 255 \
<< client->format.greenShift | \
(((uint##bpp##_t)(b) & 0xFF) * client->format.blueMax + 127) / 255 \
<< client->format.blueShift)

Definition at line 31 of file cursor.c.