Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 80 → Rev 81

/install/install.c
165,12 → 165,11
}
 
static void newscreen(int statusbartype) {
int x;
char *msg;
msg = kittengets(0, 0, "SVAROG386 INSTALLATION");
for (x = 0; x < 80; x++) video_putchar(0, x, COLOR_TITLEBAR[mono], ' ');
video_putcharmulti(0, 0, COLOR_TITLEBAR[mono], ' ', 80, 1);
video_putstring(0, 40 - (strlen(msg) >> 1), COLOR_TITLEBAR[mono], msg, -1);
video_clear(COLOR_BODY[mono], 80);
video_clear(COLOR_BODY[mono], 80, -80);
switch (statusbartype) {
case 1:
msg = kittengets(0, 11, "Up/Down = Select entry | Enter = Validate your choice | ESC = Quit to DOS");
367,7 → 366,7
system("FDISK /AUTO");
break;
case 1:
video_clear(0x0700, 0);
video_clear(0x0700, 0, 0);
video_movecursor(0, 0);
system("FDISK");
break;
403,7 → 402,7
choice = menuselect(12, -1, 4, list, -1);
if (choice < 0) return(MENUPREV);
if (choice == 1) return(MENUQUIT);
video_clear(0x0700, 0);
video_clear(0x0700, 0, 0);
video_movecursor(0, 0);
snprintf(buff, sizeof(buff), "FORMAT %c: /Q /U /Z:seriously /V:SVAROG386", cselecteddrive);
system(buff);
432,7 → 431,7
choice = menuselect(++y, -1, 4, list, -1);
if (choice < 0) return(MENUPREV);
if (choice == 1) return(MENUQUIT);
video_clear(0x0700, 0);
video_clear(0x0700, 0, 0);
video_movecursor(0, 0);
snprintf(buff, sizeof(buff), "FORMAT %c: /Q /U /Z:seriously /V:SVAROG386", cselecteddrive);
system(buff);
735,7 → 734,7
 
Quit:
kittenclose(); /* close NLS support */
video_clear(0x0700, 0);
video_clear(0x0700, 0, 0);
video_movecursor(0, 0);
return(0);
}
/install/video.c
13,11 → 13,9
/* pointer to the VGA/MDA screen */
static unsigned short far *scr = (unsigned short far *)0xB8000000L;
 
void video_clear(unsigned short attr, int offset) {
int x;
for (x = offset; x < 2000; x++) {
scr[x] = attr;
}
void video_clear(unsigned short attr, int offset, int offsetend) {
offsetend += 2000;
while (offset < offsetend) scr[offset++] = attr;
}
 
/* inits screen, returns 0 for color mode, 1 for mono */
/install/video.h
7,7 → 7,7
#define VIDEO_H_SENTINEL
 
int video_init(void);
void video_clear(unsigned short attr, int offset);
void video_clear(unsigned short attr, int offset, int offsetend);
void video_putchar(int y, int x, unsigned short attr, int c);
void video_putcharmulti(int y, int x, unsigned short attr, int c, int repeat, int step);
void video_putstring(int y, int x, unsigned short attr, char *str, int maxlen);