summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-16 08:11:37 +0200
committerAraq <rumpf_a@web.de>2012-07-16 08:11:37 +0200
commit4215686cce1aaebd4021c856d504103f7e9a9586 (patch)
tree1ef722361e3d539fcd5046c04b6c3516fdf4ade0 /examples
parent089e7db08a8088ac6ed885fbdb4ee215033bbbf3 (diff)
downloadNim-4215686cce1aaebd4021c856d504103f7e9a9586.tar.gz
x11 example compiles again; updated python wrapper; compiler supports variables in DLLs
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/pythonex.nim1
-rwxr-xr-xexamples/x11ex.nim10
2 files changed, 5 insertions, 6 deletions
diff --git a/examples/pythonex.nim b/examples/pythonex.nim
index e2664f350..310d80151 100755
--- a/examples/pythonex.nim
+++ b/examples/pythonex.nim
@@ -9,4 +9,3 @@ Py_Initialize()
 discard PyRun_SimpleString("from time import time,ctime\L" &
                            "print 'Today is',ctime(time())\L")
 Py_Finalize()
-
diff --git a/examples/x11ex.nim b/examples/x11ex.nim
index a32094be4..eb4ae9274 100755
--- a/examples/x11ex.nim
+++ b/examples/x11ex.nim
@@ -5,7 +5,7 @@ const
   WINDOW_HEIGHT = 300
   
 var
-  width, height: cint
+  width, height: cuint
   display: PDisplay
   screen: cint
   depth: int
@@ -29,10 +29,10 @@ proc create_window =
                             XBlackPixel(display, screen),
                             XWhitePixel(display, screen))
   size_hints.flags = PSize or PMinSize or PMaxSize
-  size_hints.min_width =  width
-  size_hints.max_width =  width
-  size_hints.min_height = height
-  size_hints.max_height = height
+  size_hints.min_width =  width.cint
+  size_hints.max_width =  width.cint
+  size_hints.min_height = height.cint
+  size_hints.max_height = height.cint
   discard XSetStandardProperties(display, win, "Simple Window", "window",
                          0, nil, 0, addr(size_hints))
   discard XSelectInput(display, win, ButtonPressMask or KeyPressMask or