foxygit / doom Log in
commit 4306fa59932ef037855d8b783245987377038477
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Aug 31 18:10:49 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Thu Aug 31 18:10:49 2006 +0000

    Center the calculator in the window.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 574
---
 textscreen/examples/calculator.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/textscreen/examples/calculator.c b/textscreen/examples/calculator.c
index 63484559..af4cb3d4 100644
--- a/textscreen/examples/calculator.c
+++ b/textscreen/examples/calculator.c
@@ -123,6 +123,7 @@ void BuildGUI()

     table = TXT_NewTable(4);
     TXT_AddWidget(window, table);
+    TXT_SetWidgetAlign(table, TXT_HORIZ_CENTER);

     AddNumberButton(table, 7);
     AddNumberButton(table, 8);