Module: wine Branch: master Commit: fcdca0e809536aa72af5c8a550ef3eb541fb1947 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fcdca0e809536aa72af5c8a550...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Sat Dec 29 23:55:58 2007 +0100
winex11.drv: Simplify condition in create_xcursor_cursor() based on the unsignedness of types.
---
dlls/winex11.drv/mouse.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 97e097b..4440c85 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -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;