y -= surface->y;
}
- if ((x != subsystem->common.pointerX) || (y != subsystem->common.pointerY))
+ if ((x != (INT64)subsystem->common.pointerX) || (y != (INT64)subsystem->common.pointerY))
{
subsystem->common.pointerX = x;
subsystem->common.pointerY = y;
XGetWindowAttributes(subsystem->display, subsystem->root_window, &attr);
XUnlockDisplay(subsystem->display);
- if (attr.width != subsystem->width || attr.height != subsystem->height)
+ if (attr.width != (INT64)subsystem->width || attr.height != (INT64)subsystem->height)
{
/* Screen size changed. Refresh monitor definitions and trigger screen resize */
subsystem->common.numMonitors = x11_shadow_enum_monitors(subsystem->common.monitors, 16);
{
screens = XineramaQueryScreens(display, &numMonitors);
- if (numMonitors > maxMonitors)
- numMonitors = maxMonitors;
+ if (numMonitors > (INT64)maxMonitors)
+ numMonitors = (int)maxMonitors;
if (screens && (numMonitors > 0))
{
{
pf = pfs + i;
- if (pf->depth == subsystem->depth)
+ if (pf->depth == (INT64)subsystem->depth)
{
subsystem->bpp = pf->bits_per_pixel;
subsystem->scanline_pad = pf->scanline_pad;
{
vi = vis + i;
- if (vi->depth == subsystem->depth)
+ if (vi->depth == (INT64)subsystem->depth)
{
subsystem->visual = vi->visual;
break;
{
if (client->server->shareSubRect)
{
- int i = 0;
+ UINT32 i = 0;
UINT16 offsetX = client->server->subRect.left;
UINT16 offsetY = client->server->subRect.top;
BOOL ret = TRUE;
BYTE* data;
BYTE* buffer;
- int yIdx, xIdx, k;
+ size_t k;
+ int yIdx, xIdx;
int rows, cols;
UINT32 DstSize;
UINT32 SrcFormat;
bitmap->destLeft = nXSrc + (xIdx * 64);
bitmap->destTop = nYSrc + (yIdx * 64);
- if ((bitmap->destLeft + bitmap->width) > (nXSrc + nWidth))
- bitmap->width = (nXSrc + nWidth) - bitmap->destLeft;
+ if ((INT64)(bitmap->destLeft + bitmap->width) > (nXSrc + nWidth))
+ bitmap->width = (UINT32)(nXSrc + nWidth) - bitmap->destLeft;
- if ((bitmap->destTop + bitmap->height) > (nYSrc + nHeight))
- bitmap->height = (nYSrc + nHeight) - bitmap->destTop;
+ if ((INT64)(bitmap->destTop + bitmap->height) > (nYSrc + nHeight))
+ bitmap->height = (UINT32)(nYSrc + nHeight) - bitmap->destTop;
bitmap->destRight = bitmap->destLeft + bitmap->width - 1;
bitmap->destBottom = bitmap->destTop + bitmap->height - 1;