/* title.c */ #include #include #include #include #include "./global.h" #ifdef NCURSES #include #include #endif #ifndef NCURSES #define printw printf #endif #define XVIRTU 70 #define YVIRTU 8 #define XSCREEN 60 #define YSCREEN 6 #define Y 4 #define X 51 void clear_logo(unsigned int, unsigned int); void print_logo(unsigned int, unsigned int, unsigned int); void blink_logo(unsigned int, unsigned int, unsigned int); void blink2_logo(unsigned int, unsigned int, unsigned int); void shadow_logo(unsigned int, unsigned int, unsigned int); void flash_screen(unsigned int, unsigned int, unsigned int); void flash_screen2(unsigned int, unsigned int, unsigned int); char logo[Y][X]= { "~ ~ ~~~\\ ~~\\ ~~~\\ ~~~ ~~\\ ~ ~ ",\ " /| | | ) __| | / ",\ "| || | | | | | / | | | | \\ ",\ "| | ___/ __/ | \\| | __/ | \\ 1.2 ",\ }; char copy[Y][X]; void logow() { register unsigned int i,j,k; #ifdef NCURSES mvwprintw(stdscr, 1, 0, " "); clrtoeol(); mvwprintw(stdscr, 23, 0, " "); attrset(COLOR_PAIR(2)); mdmesg(30, NULL); attrset(COLOR_PAIR(2)|A_BLINK); mdmesg(35, NULL); for(;;) { flash_screen(4, 1, 3); print_logo(6, 1, 1); blink_logo(6, 1, 3); blink2_logo(6, 1, 3); for (k=0;k> http://mdcrack.df.ru << ", 16, 4, 3); usleep(100000); slogan_screen(">> http://mdcrack.multimania.com << ", 16, 5, 3); sleep(5); clear_line(4, 2); clear_line(4, 4); clear_line(4, 5); slogan_screen2(" Send your benchmarks & questions ", 16, 2, 3); slogan_screen2(" to ", 29, 3, 3); slogan_screen2(" c3rb3r@hotmail.com ", 22, 4, 3); sleep(2); } #else printf("\n\n"); for(i=0;i10) && ((e+4)<42)) attrset(COLOR_PAIR(6)|A_BOLD); else attrset(COLOR_PAIR(6)); mvwprintw(stdscr, y+i, e+4, "%c", logo[i][j]); } } } } else { attrset(COLOR_PAIR(5)); for(i=0;i