r308 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat May 26 18:42:56 EDT 2007
Author: icculus
Date: 2007-05-26 18:42:55 -0400 (Sat, 26 May 2007)
New Revision: 308
Modified:
trunk/gui_ncurses.c
Log:
Fixed some redraw things to make them more efficient...text box no longer
flickers while scrolling, too.
Modified: trunk/gui_ncurses.c
===================================================================
--- trunk/gui_ncurses.c 2007-05-26 22:04:21 UTC (rev 307)
+++ trunk/gui_ncurses.c 2007-05-26 22:42:55 UTC (rev 308)
@@ -174,7 +174,7 @@
wbkgdset(win, COLOR_PAIR(MOJOCOLOR_BUTTONHOVER));
} // else
- wclear(win);
+ werase(win);
wmove(win, 0, 0);
waddch(win, borderattr | '<');
wmove(win, 0, w-1);
@@ -201,7 +201,7 @@
WINDOW *win = mojobox->textwin;
getmaxyx(win, h, w);
- wclear(mojobox->textwin); // !!! FIXME: flickers...
+ werase(mojobox->textwin); // !!! FIXME: flickers...
for (i = 0; (pos < tcount) && (i < h); i++, pos++)
mvwaddstr(win, i, 0, mojobox->textlines[pos]);
@@ -350,15 +350,17 @@
drawText(retval);
drawBackground(stdscr);
- wrefresh(stdscr);
- wrefresh(retval->mainwin);
- wrefresh(retval->textwin);
+ wnoutrefresh(stdscr);
+ wnoutrefresh(retval->mainwin);
+ wnoutrefresh(retval->textwin);
for (i = 0; i < bcount; i++)
{
drawButton(retval, i);
- wrefresh(retval->buttons[i]);
+ wnoutrefresh(retval->buttons[i]);
} // for
+ doupdate(); // push it all to the screen.
+
return retval;
} // makeBox
More information about the mojosetup-commits
mailing list