r310 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun May 27 01:05:36 EDT 2007
Author: icculus
Date: 2007-05-27 01:05:33 -0400 (Sun, 27 May 2007)
New Revision: 310
Modified:
trunk/gui_ncurses.c
Log:
ncurses UI: let ctrl-L redraw the whole screen, in case of corruption.
Modified: trunk/gui_ncurses.c
===================================================================
--- trunk/gui_ncurses.c 2007-05-26 22:43:38 UTC (rev 309)
+++ trunk/gui_ncurses.c 2007-05-27 05:05:33 UTC (rev 310)
@@ -410,6 +410,7 @@
{
static boolean justResized = false;
MEVENT mevt;
+ int i;
int w, h;
MojoBox *mojobox = *_mojobox;
if (mojobox == NULL)
@@ -507,6 +508,21 @@
} // if
return -1;
+ case 12: // ctrl-L...redraw everything on the screen.
+ redrawwin(stdscr);
+ wnoutrefresh(stdscr);
+ redrawwin(mojobox->mainwin);
+ wnoutrefresh(mojobox->mainwin);
+ redrawwin(mojobox->textwin);
+ wnoutrefresh(mojobox->textwin);
+ for (i = 0; i < mojobox->buttoncount; i++)
+ {
+ redrawwin(mojobox->buttons[i]);
+ wnoutrefresh(mojobox->buttons[i]);
+ } // for
+ doupdate(); // push it all to the screen.
+ return -1;
+
case KEY_RESIZE:
mojobox = makeBox(mojobox->title, mojobox->text,
mojobox->buttontext, mojobox->buttoncount,
More information about the mojosetup-commits
mailing list