fix previous commit

This commit is contained in:
marschap
2006-08-20 20:46:52 +00:00
parent 4cf9bb5d66
commit b8400a9f66
+5 -2
View File
@@ -69,14 +69,17 @@ update_screen(mode *m, int display)
int old_status = status; int old_status = status;
if (m && m->func) { if (m && m->func) {
#ifdef LCDPROC_EYEBOXONE
int init_flag = (m->flags & INITIALIZED);
#endif
status = m->func(m->timer, display, &(m->flags));
#ifdef LCDPROC_EYEBOXONE #ifdef LCDPROC_EYEBOXONE
/* Eyebox Init */ /* Eyebox Init */
if((m->flags & INITIALIZED) == 0) if (init_flag == 0)
eyebox_screen(m->which,0); eyebox_screen(m->which,0);
/* Eyebox Flush */ /* Eyebox Flush */
eyebox_screen(m->which,1); eyebox_screen(m->which,1);
#endif #endif
status = m->func(m->timer, display, &(m->flags));
} }
if (status != old_status) if (status != old_status)