Mercurial > mplayer.hg
comparison gui/win32/gui.c @ 35002:64d72a128ea8
Rewrite condition and use console_state instead of console.
Although - currently - both variables are the same, it's console_state
which reflects the current state of the debug console.
author | ib |
---|---|
date | Wed, 15 Aug 2012 17:46:38 +0000 |
parents | 05d54ab2ba5c |
children | 31a5320909f7 |
comparison
equal
deleted
inserted
replaced
35001:05d54ab2ba5c | 35002:64d72a128ea8 |
---|---|
155 *stderr = *fp; | 155 *stderr = *fp; |
156 setvbuf(stderr, NULL, _IONBF, 0); | 156 setvbuf(stderr, NULL, _IONBF, 0); |
157 print_version("MPlayer"); | 157 print_version("MPlayer"); |
158 console_state = 1; | 158 console_state = 1; |
159 } | 159 } |
160 if (gui == NULL) | 160 |
161 return; | 161 if (gui) |
162 CheckMenuItem(gui->traymenu, ID_CONSOLE, MF_BYCOMMAND | (console ? MF_CHECKED : MF_UNCHECKED)); | 162 { |
163 CheckMenuItem(gui->menu, ID_CONSOLE, MF_BYCOMMAND | (console ? MF_CHECKED : MF_UNCHECKED)); | 163 CheckMenuItem(gui->traymenu, ID_CONSOLE, MF_BYCOMMAND | (console_state ? MF_CHECKED : MF_UNCHECKED)); |
164 CheckMenuItem(gui->menu, ID_CONSOLE, MF_BYCOMMAND | (console_state ? MF_CHECKED : MF_UNCHECKED)); | |
165 } | |
164 } | 166 } |
165 | 167 |
166 void capitalize(char *filename) | 168 void capitalize(char *filename) |
167 { | 169 { |
168 unsigned int i; | 170 unsigned int i; |