diff options
author | Billingsly Wetherfordshire <phowl.mouth@gmail.com> | 2013-10-09 14:34:17 -0700 |
---|---|---|
committer | Billingsly Wetherfordshire <phowl.mouth@gmail.com> | 2013-10-09 14:34:17 -0700 |
commit | 8f2efd0b160aa78dc42f123440f7dd9141d748a0 (patch) | |
tree | 413b638703e8d9719413458989434b7d18e07e6b /lib | |
parent | 2c1c5f7a1365787cc12d4347dcf12cef1e09fbb0 (diff) | |
download | Nim-8f2efd0b160aa78dc42f123440f7dd9141d748a0.tar.gz |
Update xutil.nim
removed converter
Diffstat (limited to 'lib')
-rw-r--r-- | lib/wrappers/x11/xutil.nim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/wrappers/x11/xutil.nim b/lib/wrappers/x11/xutil.nim index ce8a85329..9a3435aa5 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) |