XSetFont(dpy, defaultGC, defaultFont);
XSelectInput(dpy, DefaultRootWindow(dpy), PropertyChangeMask);
- static char dotBits[] = { 0x06, 0x0f, 0x0f, 0x06};
- dot = XCreateBitmapFromData(dpy, DefaultRootWindow(dpy), dotBits,
+ static unsigned char dotBits[] = { 0x06, 0x0f, 0x0f, 0x06};
+ dot = XCreateBitmapFromData(dpy, DefaultRootWindow(dpy), (char*)dotBits,
dotSize, dotSize);
- static char tickBits[] = { 0x80, 0xc0, 0xe2, 0x76, 0x3e, 0x1c, 0x08, 0x00};
- tick = XCreateBitmapFromData(dpy, DefaultRootWindow(dpy), tickBits,
+ static unsigned char tickBits[] = { 0x80, 0xc0, 0xe2, 0x76, 0x3e, 0x1c, 0x08, 0x00};
+ tick = XCreateBitmapFromData(dpy, DefaultRootWindow(dpy), (char*)tickBits,
tickSize, tickSize);
defaultWindowClass = rfb::strDup(defaultWindowClass_);
}
bool normalCharacter = true;
size_t pos = 0;
- for (int i = 0; (val[i] != '\0') && (i < (destSize - 1)); i++) {
+ for (size_t i = 0; (val[i] != '\0') && (i < (destSize - 1)); i++) {
// Check for sequences which will need encoding
if (val[i] == '\\') {
size_t pos = 0;
bool escapedCharacter = false;
- for (int i = 0; (val[i] != '\0') && (i < (destSize - 1)); i++) {
+ for (size_t i = 0; (val[i] != '\0') && (i < (destSize - 1)); i++) {
// Check for escape sequences
if (val[i] == '\\') {
};
static DWORD buttonDataMapping[8] = {
- 0, 0, 0, 120, -120, 0, 0, 0
+ 0, 0, 0, 120, (DWORD)-120, 0, 0, 0
};
win32::SPointer::SPointer()