From 8f2efd0b160aa78dc42f123440f7dd9141d748a0 Mon Sep 17 00:00:00 2001 From: Billingsly Wetherfordshire Date: Wed, 9 Oct 2013 14:34:17 -0700 Subject: [PATCH] Update xutil.nim removed converter --- lib/wrappers/x11/xutil.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/wrappers/x11/xutil.nim b/lib/wrappers/x11/xutil.nim index ce8a853290..9a3435aa5d 100644 --- a/lib/wrappers/x11/xutil.nim +++ b/lib/wrappers/x11/xutil.nim @@ -389,13 +389,11 @@ proc XSubImage(ximage: PXImage, x, y: cint, width, height: cuint): PXImage = proc XAddPixel(ximage: PXImage, value: clong): cint = ximage.f.add_pixel(ximage, value) -converter toInt (some: TKeySym): int = some.int - proc IsKeypadKey(keysym: TKeySym): bool = (keysym >= XK_KP_Space) and (keysym <= XK_KP_Equal) proc IsPrivateKeypadKey(keysym: TKeySym): bool = - (keysym >= 0x11000000) and (keysym <= 0x1100FFFF) + (keysym >= 0x11000000.TKeySym) and (keysym <= 0x1100FFFF.TKeySym) proc IsCursorKey(keysym: TKeySym): bool = (keysym >= XK_Home) and (keysym < XK_Select)