Commit 56641add authored by deuce's avatar deuce
Browse files

Don't set ESCDELAY until after ciolib is initialized.

parent c50bc108
......@@ -169,13 +169,6 @@ int uifcini32(uifcapi_t* uifcapi)
api->getstrxy=ugetstr;
api->printf=uprintf;
/* A esc_delay of less than 10 is stupid... silently override */
if(api->esc_delay < 10)
api->esc_delay=25;
if(cio_api.ESCDELAY)
*(cio_api.ESCDELAY)=api->esc_delay;
if(api->scrn_len!=0) {
switch(api->scrn_len) {
case 14:
......@@ -286,6 +279,13 @@ int uifcini32(uifcapi_t* uifcapi)
uifc_mouse_enable();
}
/* A esc_delay of less than 10 is stupid... silently override */
if(api->esc_delay < 10)
api->esc_delay=25;
if(cio_api.ESCDELAY)
*(cio_api.ESCDELAY)=api->esc_delay;
api->initialized=TRUE;
for(i=0; i<MAX_BUFS; i++)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment