Skip to content
Snippets Groups Projects
Commit 9d73dbb9 authored by deuce's avatar deuce
Browse files

More use of XLAT mode. Background, blank status bar, an "Scrollback"

indicators use it now.
parent edd8c28a
No related branches found
No related tags found
No related merge requests found
...@@ -45,27 +45,11 @@ void viewscroll(void) ...@@ -45,27 +45,11 @@ void viewscroll(void)
if(top>cterm->backpos) if(top>cterm->backpos)
top=cterm->backpos; top=cterm->backpos;
puttext(term.x-1,term.y-1,term.x+term.width-2,term.y+term.height-2,scrollback+(term.width*2*top)); puttext(term.x-1,term.y-1,term.x+term.width-2,term.y+term.height-2,scrollback+(term.width*2*top));
switch(cterm->emulation) { ciolib_xlat = TRUE;
case CTERM_EMULATION_ATASCII:
cputs("3crollback");
break;
case CTERM_EMULATION_PETASCII:
cputs("SCROLLBACK");
break;
default:
cputs("Scrollback"); cputs("Scrollback");
}
gotoxy(cterm->width-9,1); gotoxy(cterm->width-9,1);
switch(cterm->emulation) {
case CTERM_EMULATION_ATASCII:
cputs("3crollback");
break;
case CTERM_EMULATION_PETASCII:
cputs("SCROLLBACK");
break;
default:
cputs("Scrollback"); cputs("Scrollback");
} ciolib_xlat = FALSE;
gotoxy(1,1); gotoxy(1,1);
key=getch(); key=getch();
switch(key) { switch(key) {
......
...@@ -1906,16 +1906,12 @@ void font_control(struct bbslist *bbs) ...@@ -1906,16 +1906,12 @@ void font_control(struct bbslist *bbs)
struct file_pick fpick; struct file_pick fpick;
j=filepick(&uifc, "Load Font From File", &fpick, ".", NULL, 0); j=filepick(&uifc, "Load Font From File", &fpick, ".", NULL, 0);
if(j!=-1 && fpick.files>=1) { if(j!=-1 && fpick.files>=1)
loadfont(fpick.selected[0]); loadfont(fpick.selected[0]);
uifc_old_font=getfont();
}
filepick_free(&fpick); filepick_free(&fpick);
} }
else { else
setfont(i,FALSE,1); setfont(i,FALSE,1);
uifc_old_font=getfont();
}
} }
break; break;
} }
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include <uifc.h> #include <uifc.h>
extern uifcapi_t uifc; /* User Interface (UIFC) Library API */ extern uifcapi_t uifc; /* User Interface (UIFC) Library API */
extern int uifc_old_font; /* Font to return to after exiting uifc */
int init_uifc(BOOL scrn, BOOL bottom); int init_uifc(BOOL scrn, BOOL bottom);
void uifcbail(void); void uifcbail(void);
void uifcmsg(char *msg, char *helpbuf); void uifcmsg(char *msg, char *helpbuf);
......
...@@ -13,26 +13,11 @@ int drawwin(void) ...@@ -13,26 +13,11 @@ int drawwin(void)
char *p; char *p;
char str[32]; char str[32];
int x,y,c; int x,y,c;
int old_xlat;
gettextinfo(&txtinfo); gettextinfo(&txtinfo);
#if 0
switch(ciolib_to_screen(txtinfo.currmode)) {
case SCREEN_MODE_ATARI:
case SCREEN_MODE_ATARI_XEP80:
strcpy(str,"3ync4%2- ");
break;
case SCREEN_MODE_C64:
case SCREEN_MODE_C128_40:
case SCREEN_MODE_C128_80:
strcpy(str,"SYNCTERM ");
break;
default:
strcpy(str,"SyncTERM ");
}
#else
strcpy(str," "); strcpy(str," ");
#endif
if(txtinfo.screenwidth < 80) if(txtinfo.screenwidth < 80)
term.width=40; term.width=40;
...@@ -73,6 +58,9 @@ int drawwin(void) ...@@ -73,6 +58,9 @@ int drawwin(void)
winbuf[c++]=YELLOW|(BLUE<<4); winbuf[c++]=YELLOW|(BLUE<<4);
} }
} }
old_xlat = ciolib_xlat;
ciolib_xlat = TRUE;
puttext(1,1,txtinfo.screenwidth,txtinfo.screenheight,winbuf); puttext(1,1,txtinfo.screenwidth,txtinfo.screenheight,winbuf);
ciolib_xlat = old_xlat;
return(0); return(0);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment