#include #include #include #include void advlogo(void) { static FILE *stream; signed int cnt; char filename[30]="logo.bmp"; unsigned char pbuf[256]; unsigned long picsize; unsigned long info_start; unsigned int ix,iy,fx,fy; unsigned char cbyte,colour; unsigned int cx,cy; unsigned int ht=154; float scale=1; int handle; unsigned long songlength; cy=400; cx=320; handle = open(filename, O_RDONLY); songlength=filelength(handle); close(handle); if(songlength==99638) { stream = fopen(filename,"rb"); cnt=0; do { getc(stream); cnt++; } while(cnt<1078); cnt=0; do { getc(stream); cnt++; } while(cnt<6400); iy=cy+ht/2; fy=cy-ht/2; do { ix=0; do { cbyte=getc(stream); if(cbyte==0) {colour=BLUE;} if(cbyte!=0) {colour=LIGHTBLUE;} if( ((ix>20) && (ix<620)) && ((iy>340) && (iy<472)) ) { putpixel((ix/scale),(iy/scale),colour); } ix++; } while(ix<640); iy--; } while(iy>fy); fclose(stream); } } void c_box(unsigned int wait_time,unsigned int ccolor) { unsigned int cx,cy; cx=320; cy=240; setcolor(ccolor); do { rectangle(320-cx,240-cy,320+cx,240+cy); if(cx>0) {cx--;} if(cy>0) {cy--;} } while((cx>0)||(cy>0)); setcolor(YELLOW); } void e_box(unsigned int center_x, unsigned int center_y, unsigned int length, unsigned int height) { unsigned int left, right; unsigned int top, bottom; unsigned int cx,cy; cx=0; cy=0; do { setcolor(WHITE); rectangle(center_x-cx,center_y-cy,center_x+cx,center_y+cy); setcolor(DARKGRAY); rectangle(center_x-cx+1,center_y-cy+1,center_x+cx-1,center_y+cy-1); setcolor(WHITE); rectangle(center_x-cx+2,center_y-cy+2,center_x+cx-2,center_y+cy-2); setcolor(BLUE); rectangle(center_x-cx+3,center_y-cy+3,center_x+cx-3,center_y+cy-3); if(cx