Initializes the effects
| 150 | |
| 151 | // Initializes the effects |
| 152 | void EfxInit(void) { |
| 153 | int i; |
| 154 | |
| 155 | for (i = 0; i < MAX_TCEFFECTS; i++) { |
| 156 | tceffect *tce = &TCEffects[i]; |
| 157 | tce->type = EFX_NONE; |
| 158 | tce->monitor = -1; |
| 159 | tce->screen = -1; |
| 160 | tce->id = INVALID_EFFECT_ID; |
| 161 | tce->prev = -1; |
| 162 | tce->next = -1; |
| 163 | tce->text_buffer = NULL; |
| 164 | tce->tab_stop = false; |
| 165 | tce->has_focus = false; |
| 166 | for (int j = 0; j < MAX_EFFECT_EVENTS; j++) |
| 167 | tce->event_queue[j].id = -1; |
| 168 | } |
| 169 | |
| 170 | for (i = 0; i < MAX_TELCOM_SCREENS; i++) { |
| 171 | Screen_has_effect_with_focus[i] = false; |
| 172 | Screen_roots[i] = -1; |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | // Shutdown of effects |
| 177 | void EfxClose(void) { |
no test coverage detected