tTidied up nice_wait subroutine; it now uses mvaddcentstr to display the centred message. - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 8c093126e4c298561cb3094be900d2f90d3d3054
parent 2e5bdc847b60ceaa12ec1c168aff50c4bd4bc49a
Author: Ben Webb 
Date:   Sat,  4 Jan 2003 19:38:26 +0000

Tidied up nice_wait subroutine; it now uses mvaddcentstr to display the
centred message.


Diffstat:
  M src/curses_client/curses_client.c   |       5 +----

1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_client.c
t@@ -1581,11 +1581,8 @@ void clear_screen(void)
  */
 void nice_wait()
 {
-  gchar *text;
-
   attrset(PromptAttr);
-  text = _("Press any key...");
-  mvaddstr(23, (Width - strlen(text)) / 2, text);
+  mvaddcentstr(23, _("Press any key..."));
   bgetch();
   attrset(TextAttr);
 }