Add support for HGR2 mode

add demo title screen, plus update so generates 40COL
slides properly.
This commit is contained in:
Vince Weaver 2012-05-07 21:55:40 -04:00
parent 582911d1df
commit fa23256a40
8 changed files with 35 additions and 15 deletions

View File

@ -149,7 +149,7 @@ static void generate_slide(int num, int max, char*filename) {
int line_num;
FILE *fff;
char string[BUFSIZ],*result;
char string[BUFSIZ],*result,type[BUFSIZ];
/* line numbers start at 100 and run LINES_PER_SLIDE per slide */
line_num=100+(num*LINES_PER_SLIDE);
@ -174,13 +174,30 @@ static void generate_slide(int num, int max, char*filename) {
}
else {
printf("%d VTAB 1\n",line_num); line_num++;
while(1) {
result=fgets(string,BUFSIZ,fff);
if (result==NULL) break;
string[strlen(string)-1]='\0';
printf("%d PRINT \"%s\"\n",line_num,string); line_num++;
}
result=fgets(type,BUFSIZ,fff);
if (strstr(type,"HGR2")) {
printf("%d HGR2\n",line_num); line_num++;
printf("%d PRINT CHR$(4);\"BLOAD TITLE.IMG,A$4000\"\n",
line_num); line_num++;
}
else if (strstr(type,"HGR")) {
}
else if (strstr(type,"80COL")) {
}
else if (strstr(type,"40COL")) {
printf("%d VTAB 1\n",line_num); line_num++;
while(1) {
result=fgets(string,BUFSIZ,fff);
if (result==NULL) break;
string[strlen(string)-1]='\0';
printf("%d PRINT \"%s\"\n",line_num,string); line_num++;
}
}
fclose(fff);
}

View File

@ -4,13 +4,13 @@ LFLAGS =
all: presenter_demo.dsk
presenter_demo.dsk: PRESENTER_DEMO VINCE.IMG
presenter_demo.dsk: PRESENTER_DEMO TITLE.IMG
../dos33 presenter_demo.dsk SAVE A PRESENTER_DEMO
../dos33 presenter_demo.dsk SAVE B VINCE.IMG
../dos33 presenter_demo.dsk SAVE B TITLE.IMG
VINCE.IMG: vince.pcx ../pcx2hgr
../pcx2hgr vince.pcx > VINCE.IMG
TITLE.IMG: title.pcx ../pcx2hgr
../pcx2hgr title.pcx > TITLE.IMG
PRESENTER_DEMO: demo.bas
../tokenize_asoft < demo.bas > PRESENTER_DEMO

View File

@ -12,4 +12,5 @@ slide_rapl_intro
slide_rapl_continued
slide_rapl_more
slide_rapl_finish
slide_title
END_SLIDES

View File

@ -1,3 +1,3 @@
40col
40COL
RAPL CONTINUE
* Is freally awesome

View File

@ -1,3 +1,3 @@
40col
40COL
RAPL LAST
* Is really awesome

View File

@ -1,3 +1,3 @@
40col
40COL
RAPL MORE
* Is really awesome

View File

@ -0,0 +1,2 @@
HGR2
TITLE.IMG

BIN
presenter_demo/title.pcx Normal file

Binary file not shown.