mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-26 11:30:12 +00:00
Add support for HGR2 mode
add demo title screen, plus update so generates 40COL slides properly.
This commit is contained in:
parent
582911d1df
commit
fa23256a40
@ -149,7 +149,7 @@ static void generate_slide(int num, int max, char*filename) {
|
|||||||
|
|
||||||
int line_num;
|
int line_num;
|
||||||
FILE *fff;
|
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 numbers start at 100 and run LINES_PER_SLIDE per slide */
|
||||||
line_num=100+(num*LINES_PER_SLIDE);
|
line_num=100+(num*LINES_PER_SLIDE);
|
||||||
@ -174,6 +174,21 @@ static void generate_slide(int num, int max, char*filename) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
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++;
|
printf("%d VTAB 1\n",line_num); line_num++;
|
||||||
while(1) {
|
while(1) {
|
||||||
result=fgets(string,BUFSIZ,fff);
|
result=fgets(string,BUFSIZ,fff);
|
||||||
@ -181,6 +196,8 @@ static void generate_slide(int num, int max, char*filename) {
|
|||||||
string[strlen(string)-1]='\0';
|
string[strlen(string)-1]='\0';
|
||||||
printf("%d PRINT \"%s\"\n",line_num,string); line_num++;
|
printf("%d PRINT \"%s\"\n",line_num,string); line_num++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
fclose(fff);
|
fclose(fff);
|
||||||
}
|
}
|
||||||
|
@ -4,13 +4,13 @@ LFLAGS =
|
|||||||
|
|
||||||
all: presenter_demo.dsk
|
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 A PRESENTER_DEMO
|
||||||
../dos33 presenter_demo.dsk SAVE B VINCE.IMG
|
../dos33 presenter_demo.dsk SAVE B TITLE.IMG
|
||||||
|
|
||||||
|
|
||||||
VINCE.IMG: vince.pcx ../pcx2hgr
|
TITLE.IMG: title.pcx ../pcx2hgr
|
||||||
../pcx2hgr vince.pcx > VINCE.IMG
|
../pcx2hgr title.pcx > TITLE.IMG
|
||||||
|
|
||||||
PRESENTER_DEMO: demo.bas
|
PRESENTER_DEMO: demo.bas
|
||||||
../tokenize_asoft < demo.bas > PRESENTER_DEMO
|
../tokenize_asoft < demo.bas > PRESENTER_DEMO
|
||||||
|
@ -12,4 +12,5 @@ slide_rapl_intro
|
|||||||
slide_rapl_continued
|
slide_rapl_continued
|
||||||
slide_rapl_more
|
slide_rapl_more
|
||||||
slide_rapl_finish
|
slide_rapl_finish
|
||||||
|
slide_title
|
||||||
END_SLIDES
|
END_SLIDES
|
@ -1,3 +1,3 @@
|
|||||||
40col
|
40COL
|
||||||
RAPL CONTINUE
|
RAPL CONTINUE
|
||||||
* Is freally awesome
|
* Is freally awesome
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
40col
|
40COL
|
||||||
RAPL LAST
|
RAPL LAST
|
||||||
* Is really awesome
|
* Is really awesome
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
40col
|
40COL
|
||||||
RAPL MORE
|
RAPL MORE
|
||||||
* Is really awesome
|
* Is really awesome
|
||||||
|
2
presenter_demo/slide_title
Normal file
2
presenter_demo/slide_title
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
HGR2
|
||||||
|
TITLE.IMG
|
BIN
presenter_demo/title.pcx
Normal file
BIN
presenter_demo/title.pcx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user