Diff of /trunk/src/icons.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 176 by harbaum, Wed Nov 11 20:21:55 2009 UTC revision 187 by harbaum, Mon Nov 16 13:39:00 2009 UTC
# Line 33  struct icon_data { Line 33  struct icon_data {
33    { NULL, LOG_TYPE_MAX+1 },    /* ICON_LOG             */    { NULL, LOG_TYPE_MAX+1 },    /* ICON_LOG             */
34    { NULL, 9 },                 /* ICON_HEADING         */    { NULL, 9 },                 /* ICON_HEADING         */
35    { NULL, WPT_SYM_MAX+1 },     /* ICON_WPT             */    { NULL, WPT_SYM_MAX+1 },     /* ICON_WPT             */
36    { NULL, 1 },                 /* ICON_TB              */    { NULL, 2 },                 /* ICON_TB              */
37    { NULL, 9 },                 /* ICON_MISC            */    { NULL, 9 },                 /* ICON_MISC            */
38    { NULL, 3 },                 /* ICON_FILE            */    { NULL, 3 },                 /* ICON_FILE            */
39    { NULL, -1 }    { NULL, -1 }
# Line 79  const char *wpt_sym_icon_name[] = { Line 79  const char *wpt_sym_icon_name[] = {
79    
80  /* ICON_TB         */  /* ICON_TB         */
81  const char *tb_icon_name[] = {  const char *tb_icon_name[] = {
82    "tb"    "tb", "coin"
83  };  };
84    
85  /* ICON_MISC         */  /* ICON_MISC         */
# Line 155  static void icons_load(int type, char *f Line 155  static void icons_load(int type, char *f
155  void icons_init(void) {  void icons_init(void) {
156    
157    /* load cache type icons */    /* load cache type icons */
158    icons_load(ICON_CACHE_TYPE, "cache_type_%s.%s", cache_type_icon_name);    icons_load(ICON_CACHE_TYPE, "32x32/cache_type_%s.%s", cache_type_icon_name);
159    
160    /* load semitransparent cache type icons */    /* load semitransparent cache type icons */
161    icons_load(ICON_CACHE_TYPE_SEMI, "cache_type_%s_semi.%s", cache_type_icon_name);    icons_load(ICON_CACHE_TYPE_SEMI, "32x32/cache_type_%s_semi.%s", cache_type_icon_name);
162    
163    /* load 150% sized cache type icons */    /* load 150% sized cache type icons */
164    icons_load(ICON_CACHE_TYPE_1_5X, "cache_type_%s_1.5x.%s", cache_type_icon_name);    icons_load(ICON_CACHE_TYPE_1_5X, "48x48/cache_type_%s.%s", cache_type_icon_name);
165    
166    /* load double sized cache type icons */    /* load double sized cache type icons */
167    icons_load(ICON_CACHE_TYPE_2X, "cache_type_%s_2x.%s", cache_type_icon_name);    icons_load(ICON_CACHE_TYPE_2X, "64x64/cache_type_%s.%s", cache_type_icon_name);
168    
169    /* load cache container/size icons */    /* load cache container/size icons */
170    icons_load(ICON_CACHE_SIZE, "cache_size_%s.%s", cache_size_icon_name);  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
171      icons_load(ICON_CACHE_SIZE, "45x12/cache_size_%s.%s", cache_size_icon_name);
172    #else
173      icons_load(ICON_CACHE_SIZE, "90x24/cache_size_%s.%s", cache_size_icon_name);
174    #endif
175    
176      /* load cache difficulty/terrain/quality icons */
177    #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
178      icons_load(ICON_STARS, "12x12/stars%s.%s", stars_icon_name);
179    #else
180      icons_load(ICON_STARS, "16x16/stars%s.%s", stars_icon_name);
181    #endif
182    
183    /* load cache difficulty/terrain icons */    /* load cache log icons */
184    icons_load(ICON_STARS, "stars%s.%s", stars_icon_name);    icons_load(ICON_LOG, "32x32/log_icon_%s.%s", log_icon_name);
   
   /* load cache difficulty/terrain icons */  
   icons_load(ICON_LOG, "log_icon_%s.%s", log_icon_name);  
185    
186    /* load icons to visualize heading */    /* load icons to visualize heading */
187    icons_load(ICON_HEADING, "heading_%s.%s", heading_icon_name);  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
188      icons_load(ICON_HEADING, "32x32/heading_%s.%s", heading_icon_name);
189    #else
190      icons_load(ICON_HEADING, "48x48/heading_%s.%s", heading_icon_name);
191    #endif
192    
193    /* load icons to visualize heading */    /* load waypoint icons */
194    icons_load(ICON_WPT, "wpt_%s.%s", wpt_sym_icon_name);    icons_load(ICON_WPT, "32x32/wpt_%s.%s", wpt_sym_icon_name);
195    
196    /* load travelbug icon */    /* load travelbug/coin icons */
197    icons_load(ICON_TB, "%s.%s", tb_icon_name);    icons_load(ICON_TB, "32x32/%s.%s", tb_icon_name);
198    
199    /* load misc icons */    /* load misc icons */
200    icons_load(ICON_MISC, "%s.%s", misc_icon_name);    icons_load(ICON_MISC, "%s.%s", misc_icon_name);

Legend:
Removed from v.176  
changed lines
  Added in v.187