Changeset 232
- Timestamp:
- 06/27/07 22:17:15 (1 year ago)
- Files:
-
- trunk/.svnignore (modified) (1 diff)
- trunk/src/cmd4.c (modified) (2 diffs)
- trunk/src/externs.h (modified) (1 diff)
- trunk/src/main-sdl.c (modified) (3 diffs)
- trunk/src/main-x11.c (modified) (3 diffs)
- trunk/src/squelch.c (modified) (1 diff)
- trunk/src/variable.c (modified) (1 diff)
- trunk/src/z-form.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/.svnignore
r228 r232 1 1 *.d 2 2 *.o 3 * .depend4 *.depend-done3 */.depend 4 .depend-done 5 5 src/autoconf.h* 6 6 mk/rules.mk trunk/src/cmd4.c
r217 r232 108 108 /* A default group-by */ 109 109 static join_t *default_join; 110 #if 0 110 111 static int default_join_cmp(const void *a, const void *b) 111 112 { … … 116 117 return ja->oid - jb->oid; 117 118 } 119 #endif 118 120 static int default_group(int oid) { return default_join[oid].gid; } 119 121 trunk/src/externs.h
r229 r232 97 97 extern bool arg_wizard; 98 98 extern bool arg_sound; 99 extern boolarg_graphics;99 extern int arg_graphics; 100 100 extern bool character_generated; 101 101 extern bool character_dungeon; trunk/src/main-sdl.c
r163 r232 18 18 */ 19 19 #include "angband.h" 20 #include "cmds.h" 20 21 21 22 /* … … 3210 3211 Uint8 r, g, b; 3211 3212 Uint32 key; 3212 Uint32 Pixel ;3213 Uint32 Pixel = 0; 3213 3214 int x = GfxDesc[use_graphics].x, y = GfxDesc[use_graphics].y; 3214 3215 … … 3448 3449 char path[1024]; 3449 3450 char buf[1024]; 3450 FILE *fff;3451 3451 ang_dir *dir; 3452 3452 trunk/src/main-x11.c
r223 r232 2627 2627 #ifdef USE_GRAPHICS 2628 2628 2629 cptr bitmap_file ;2629 cptr bitmap_file = NULL; 2630 2630 char filename[1024]; 2631 2631 … … 2803 2803 #ifdef USE_GRAPHICS 2804 2804 2805 /* Paranoia */ 2806 use_graphics = GRAPHICS_NONE; 2807 2805 2808 /* Try graphics */ 2806 2809 switch (arg_graphics) 2807 2810 { 2808 case GRAPHICS_ADAM_BOLT: 2809 /* Use tile graphics of Adam Bolt */ 2810 bitmap_file = "16x16.bmp"; 2811 2812 /* Try the "16x16.bmp" file */ 2813 path_build(filename, sizeof(filename), ANGBAND_DIR_XTRA, format("graf/%s", bitmap_file)); 2814 2815 /* Use the "16x16.bmp" file if it exists */ 2816 if (0 == fd_close(fd_open(filename, O_RDONLY))) 2817 { 2818 /* Use graphics */ 2811 case GRAPHICS_ADAM_BOLT: 2812 { 2813 bitmap_file = "graf/16x16.bmp"; 2814 2819 2815 use_graphics = GRAPHICS_ADAM_BOLT; 2820 2816 use_transparency = TRUE; 2821 2822 2817 pict_wid = pict_hgt = 16; 2823 2824 2818 ANGBAND_GRAF = "new"; 2825 2819 2826 2820 break; 2827 2821 } 2828 /* Fall through */ 2829 2830 case GRAPHICS_ORIGINAL: 2831 /* Use original tile graphics */ 2832 bitmap_file = "8x8.bmp"; 2833 2834 /* Try the "8x8.bmp" file */ 2835 path_build(filename, sizeof(filename), ANGBAND_DIR_XTRA, format("graf/%s", bitmap_file)); 2836 2837 /* Use the "8x8.bmp" file if it exists */ 2838 if (0 == fd_close(fd_open(filename, O_RDONLY))) 2839 { 2840 /* Use graphics */ 2822 2823 case GRAPHICS_ORIGINAL: 2824 { 2825 bitmap_file = "graf/8x8.bmp"; 2826 2841 2827 use_graphics = GRAPHICS_ORIGINAL; 2842 2843 2828 pict_wid = pict_hgt = 8; 2844 2845 2829 ANGBAND_GRAF = "old"; 2830 2846 2831 break; 2847 2832 } 2848 break; 2849 2850 case GRAPHICS_DAVID_GERVAIS: 2851 /* Use tile graphics of David Gervais */ 2852 bitmap_file = "32x32.bmp"; 2853 2854 /* Use graphics */ 2855 use_graphics = GRAPHICS_DAVID_GERVAIS; 2856 use_transparency = TRUE; 2857 2858 pict_wid = pict_hgt = 32; 2859 2860 ANGBAND_GRAF = "david"; 2861 break; 2862 } 2833 2834 case GRAPHICS_DAVID_GERVAIS: 2835 { 2836 bitmap_file = "32x32.bmp"; 2837 2838 use_graphics = GRAPHICS_DAVID_GERVAIS; 2839 use_transparency = TRUE; 2840 pict_wid = pict_hgt = 32; 2841 ANGBAND_GRAF = "david"; 2842 2843 break; 2844 } 2845 } 2846 2847 2848 /* Try the file */ 2849 path_build(filename, sizeof(filename), ANGBAND_DIR_XTRA, bitmap_file); 2850 if (!my_fexists(filename)) 2851 { 2852 use_graphics = GRAPHICS_NONE; 2853 use_transparency = FALSE; 2854 ANGBAND_GRAF = 0; 2855 } 2856 2863 2857 2864 2858 /* Load graphics */ 2865 if (use_graphics )2859 if (use_graphics != GRAPHICS_NONE) 2866 2860 { 2867 2861 Display *dpy = Metadpy->dpy; … … 2876 2870 } 2877 2871 2878 path_build(filename, sizeof(filename), ANGBAND_DIR_XTRA, format("graf/%s", bitmap_file));2872 path_build(filename, sizeof(filename), ANGBAND_DIR_XTRA, bitmap_file); 2879 2873 2880 2874 /* Load the graphical tiles */ trunk/src/squelch.c
r229 r232 639 639 menu_iter menu_f = { 0, 0, 0, quality_display, quality_action }; 640 640 region area = { 1, 5, -1, -1 }; 641 event_type evt ;641 event_type evt = EVENT_EMPTY; 642 642 int cursor = 0; 643 643 trunk/src/variable.c
r214 r232 53 53 bool arg_wizard; /* Command arg -- Request wizard mode */ 54 54 bool arg_sound; /* Command arg -- Request special sounds */ 55 boolarg_graphics; /* Command arg -- Request graphics mode */55 int arg_graphics; /* Command arg -- Request graphics mode */ 56 56 57 57 /* trunk/src/z-form.c
r155 r232 562 562 } 563 563 564 #if 0 /* Later */ 564 565 /* Binary */ 565 566 case 'b': … … 573 574 arg = va_arg(vp, int); 574 575 575 #if 0 /* Later */576 576 /* Check our aux string */ 577 577 switch (aux[0]) … … 584 584 case '5': max = 32; break; 585 585 } 586 #endif587 586 /* Format specially */ 588 587 for (i = 1; i <= max; i++, bitmask *= 2) … … 601 600 break; 602 601 } 602 #endif 603 603 604 604 /* Oops */
