home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Slightly shortened and simplified windows library code.
[plomrogue]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 478f764d4586d43908632a0512a1b03bd58b495d..39837fefc9b02afa79e0bf7c164f67d7f3840504 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-152,14
+152,12
@@
int main(int argc, char *argv[])
world.seed = restore_seed;
/* Initialize window system and windows. */
world.seed = restore_seed;
/* Initialize window system and windows. */
-
WINDOW * screen = initscr
();
+
init_win_meta
();
set_cleanup_flag(CLEANUP_NCURSES);
noecho();
curs_set(0);
set_cleanup_flag(CLEANUP_NCURSES);
noecho();
curs_set(0);
- keypad(screen, TRUE);
+ keypad(
world.wmeta->
screen, TRUE);
raw();
raw();
- init_win_meta(screen);
- set_cleanup_flag(CLEANUP_WIN_META);
load_interface_conf();
set_cleanup_flag(CLEANUP_INTERFACE_CONF);
load_interface_conf();
set_cleanup_flag(CLEANUP_INTERFACE_CONF);