mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-28 16:14:33 +02:00
Stop reinitializing curses inside a signal handler (doy).
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@603 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
e29747ab89
commit
6942ccae67
@ -2383,6 +2383,7 @@ runmenuloop(struct dg_menu *menu)
|
|||||||
|
|
||||||
loadbanner(menu->banner_fn, &ban);
|
loadbanner(menu->banner_fn, &ban);
|
||||||
while (1) {
|
while (1) {
|
||||||
|
term_resize_check();
|
||||||
if (doclear) {
|
if (doclear) {
|
||||||
doclear = 0;
|
doclear = 0;
|
||||||
write(1, "\033%G", 3);
|
write(1, "\033%G", 3);
|
||||||
|
@ -74,7 +74,6 @@ sigwinch_func(int sig)
|
|||||||
{
|
{
|
||||||
signal(SIGWINCH, sigwinch_func);
|
signal(SIGWINCH, sigwinch_func);
|
||||||
curses_resize = 1;
|
curses_resize = 1;
|
||||||
term_resize_check();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user