Mercurial > hg > nnchat
comparison ui.c @ 495:f8fc6d18bcdb
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 27 May 2012 11:45:51 +0300 |
parents | 56689f94e827 |
children | 012f106bf290 |
comparison
equal
deleted
inserted
replaced
494:5d8116a410d1 | 495:f8fc6d18bcdb |
---|---|
55 nn_window_t *nnwin_get(const int index) | 55 nn_window_t *nnwin_get(const int index) |
56 { | 56 { |
57 if (index >= 1 && index <= SET_MAX_WINDOWS) | 57 if (index >= 1 && index <= SET_MAX_WINDOWS) |
58 return chatWindows[index - 1]; | 58 return chatWindows[index - 1]; |
59 else | 59 else |
60 return 0; | 60 return NULL; |
61 | |
62 } | 61 } |
63 | 62 |
64 | 63 |
65 BOOL nnwin_init(int delay) | 64 BOOL nnwin_init(int delay) |
66 { | 65 { |
101 | 100 |
102 if (!nnwin_init_windows()) | 101 if (!nnwin_init_windows()) |
103 return FALSE; | 102 return FALSE; |
104 | 103 |
105 #ifdef PDCURSES | 104 #ifdef PDCURSES |
106 PDC_set_title("NNChat v" NN_VERSION); | 105 PDC_set_title("NNChat v" NN_VERSION); |
107 #endif | 106 #endif |
108 | 107 |
109 memset(chatWindows, 0, sizeof(chatWindows)); | 108 memset(chatWindows, 0, sizeof(chatWindows)); |
110 chatWindows[0] = nn_window_new(NULL); | 109 chatWindows[0] = nn_window_new(NULL); |
111 currWin = chatWindows[0]; | 110 currWin = chatWindows[0]; |