mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 15:20:47 +00:00
winex11.drv: Simplify condition in create_xcursor_cursor() based on the unsignedness of types.
This commit is contained in:
parent
f41d0cb530
commit
fcdca0e809
|
@ -566,8 +566,8 @@ static Cursor create_xcursor_cursor( Display *display, CURSORICONINFO *ptr )
|
||||||
/* Make sure hotspot is valid */
|
/* Make sure hotspot is valid */
|
||||||
image->xhot = ptr->ptHotSpot.x;
|
image->xhot = ptr->ptHotSpot.x;
|
||||||
image->yhot = ptr->ptHotSpot.y;
|
image->yhot = ptr->ptHotSpot.y;
|
||||||
if (image->xhot < 0 || image->xhot >= image->width ||
|
if (image->xhot >= image->width ||
|
||||||
image->yhot < 0 || image->yhot >= image->height)
|
image->yhot >= image->height)
|
||||||
{
|
{
|
||||||
image->xhot = image->width / 2;
|
image->xhot = image->width / 2;
|
||||||
image->yhot = image->height / 2;
|
image->yhot = image->height / 2;
|
||||||
|
|
Loading…
Reference in a new issue