Changeset 481 for branches/juciphox/core/gui.c
- Timestamp:
- 08/14/08 00:28:20 (5 years ago)
- File:
-
- 1 edited
-
branches/juciphox/core/gui.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/juciphox/core/gui.c
r479 r481 1747 1747 void gui_init() 1748 1748 { 1749 1749 1750 gui_mode = GUI_MODE_NONE; 1750 1751 gui_restore = 0; … … 1809 1810 enum Gui_Mode gui_mode_old; 1810 1811 static int show_script_console=0; 1811 1812 1812 if (gui_splash) { 1813 1813 if (gui_splash>(SPLASH_TIME-4)) { 1814 1814 gui_draw_splash(); 1815 conf.show_osd = 0; 1815 1816 } else if (gui_splash==1 && (mode_get()&MODE_MASK) == gui_splash_mode && (gui_mode==GUI_MODE_NONE || gui_mode==GUI_MODE_ALT)) { 1816 1817 draw_restore(); 1818 conf.show_osd = 1; 1817 1819 } 1818 1820 --gui_splash; … … 2572 2574 draw_string(x+((w-strlen(text[i])*FONT_WIDTH)>>1), y+i*FONT_HEIGHT+4, text[i], cl); 2573 2575 } 2574 int mx,my; 2576 int pos; 2577 int mx=0; 2578 int my=0; 2575 2579 int offset_x = (screen_width-150)>>1; 2576 2580 int offset_y = ((screen_height-84)>>1) - 42; 2581 const color color_lookup[8] = {0xFF, 0x2E, 0x22, 0x3D, 0x1F, 0x21, 0x00, 0x11}; 2577 2582 2578 for(mx=0; mx<150; mx++){ 2579 for(my=0; my<84; my++){ 2580 color c = header_data[my*150+mx]; 2581 if (c != 0x00) 2583 for(pos=0; pos<HEADER_DATA_LEN; pos++){ 2584 char data = header_data[pos]; 2585 color c = color_lookup[(data>>5) & 0x07]; 2586 for(i=0; i<(data&0x1F)+1; i++){ 2587 if (c!=0x00){ 2582 2588 draw_pixel(offset_x+mx,offset_y+my,c); 2589 } 2590 if (mx==149){ 2591 mx=0; 2592 my++; 2593 }else{ 2594 mx++; 2595 } 2596 2583 2597 } 2584 2598 }
Note: See TracChangeset
for help on using the changeset viewer.