--- sbbs/src/uifc/filepick.c 2018/04/24 16:41:24 1.1 +++ sbbs/src/uifc/filepick.c 2018/04/24 16:45:51 1.1.1.2 @@ -45,7 +45,7 @@ void drawfpwindow(uifcapi_t *api) if(api->mode&UIFC_MOUSE && width>6) { lbuf[2]='['; lbuf[3]=api->hclr|(api->bclr<<4); - lbuf[4]=0xfe; + lbuf[4]='\xfe'; lbuf[5]=api->lclr|(api->bclr<<4); lbuf[6]=']'; lbuf[7]=api->hclr|(api->bclr<<4); @@ -201,7 +201,7 @@ char **get_file_opt_list(char **fns, int void display_current_path(uifcapi_t *api, char *path) { char dpath[MAX_PATH+2]; - int width; + size_t width; int height; char *p; @@ -229,7 +229,6 @@ void display_current_path(uifcapi_t *api int mousetofield(int currfield, int opts, int height, int width, int listheight, int listwidth, int *dcur, int *dbar, int *fcur, int *fbar) { int newfield; - int nbar; int bardif; struct mouse_event mevnt; @@ -317,6 +316,9 @@ int filepick(uifcapi_t *api, char *title int finished=FALSE; int retval=0; int fieldmove; + int oldhu=hold_update; + int oldx=wherex(); + int oldy=wherey(); height=api->scrn_len-3; width=SCRN_RIGHT-SCRN_LEFT-3; @@ -640,6 +642,8 @@ int filepick(uifcapi_t *api, char *title } cleanup: /* Cleans up allocated variables returns from function */ + hold_update=oldhu; + gotoxy(oldx,oldy); FREE_AND_NULL(lastpath); FREE_AND_NULL(tmppath); FREE_AND_NULL(tmplastpath);