Commit fcdca0e8 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

winex11.drv: Simplify condition in create_xcursor_cursor() based on the unsignedness of types.

parent f41d0cb5
......@@ -566,8 +566,8 @@ static Cursor create_xcursor_cursor( Display *display, CURSORICONINFO *ptr )
/* Make sure hotspot is valid */
image->xhot = ptr->ptHotSpot.x;
image->yhot = ptr->ptHotSpot.y;
if (image->xhot < 0 || image->xhot >= image->width ||
image->yhot < 0 || image->yhot >= image->height)
if (image->xhot >= image->width ||
image->yhot >= image->height)
{
image->xhot = image->width / 2;
image->yhot = image->height / 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment