aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/purkle
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-16 19:01:10 +1000
committerDavid Walter Seikel2014-05-16 19:01:10 +1000
commit4ad8e29364ba0074b1041c5ae19453a9a6f398d2 (patch)
tree708a58f5ac4658615b8659d3f017f4c0a624a6aa /src/purkle
parentPut module name in winFang and winFang in Widget, plus related tweakage and use. (diff)
downloadSledjHamr-4ad8e29364ba0074b1041c5ae19453a9a6f398d2.zip
SledjHamr-4ad8e29364ba0074b1041c5ae19453a9a6f398d2.tar.gz
SledjHamr-4ad8e29364ba0074b1041c5ae19453a9a6f398d2.tar.bz2
SledjHamr-4ad8e29364ba0074b1041c5ae19453a9a6f398d2.tar.xz
Only open one purkle window.
Diffstat (limited to 'src/purkle')
-rw-r--r--src/purkle/purkle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/purkle/purkle.c b/src/purkle/purkle.c
index 6c211c0..3ad776b 100644
--- a/src/purkle/purkle.c
+++ b/src/purkle/purkle.c
@@ -7,6 +7,7 @@
7static const char *ourName = "purkle"; 7static const char *ourName = "purkle";
8static int skang, _M; 8static int skang, _M;
9static Widget *entry, *history; 9static Widget *entry, *history;
10static winFang *me;
10 11
11static winFang *purkleAdd(winFang *parent, int w, int h, EPhysics_World *world) 12static winFang *purkleAdd(winFang *parent, int w, int h, EPhysics_World *world)
12{ 13{
@@ -78,7 +79,7 @@ int luaopen_purkle(lua_State *L)
78 world = gl->world; 79 world = gl->world;
79 } 80 }
80 81
81 purkleAdd(parent, 500, 420, world); 82 if (!me) me = purkleAdd(parent, 500, 420, world);
82 push_lua(L, "@ ( = )", skang, MODULEEND, _M, 0); 83 push_lua(L, "@ ( = )", skang, MODULEEND, _M, 0);
83 84
84 // Return _M, the table itself, not the index. 85 // Return _M, the table itself, not the index.