gfxinit.c
changeset 2571 550a7d323ced
parent 2565 de04ba1d3a5c
child 2577 e2321aed315f
equal deleted inserted replaced
2570:f86c326fda65 2571:550a7d323ced
   271  * the old sprite-count offset from SPR_OPENTTD_BASE. With this there is no
   271  * the old sprite-count offset from SPR_OPENTTD_BASE. With this there is no
   272  * correspondence of any kind with the ID's in the grf file, but results in
   272  * correspondence of any kind with the ID's in the grf file, but results in
   273  * a maximum use of sprite slots. */
   273  * a maximum use of sprite slots. */
   274 #define OPENTTD_SPRITES_COUNT 101
   274 #define OPENTTD_SPRITES_COUNT 101
   275 static const SpriteID _openttd_grf_indexes[] = {
   275 static const SpriteID _openttd_grf_indexes[] = {
   276 	SPR_OPENTTD_BASE + 0, SPR_OPENTTD_BASE + 7, // icons etc
   276 	SPR_IMG_AUTORAIL, SPR_CURSOR_WAYPOINT, // icons etc
   277 	134, 134,  // euro symbol medium size
   277 	134, 134,  // euro symbol medium size
   278 	582, 582,  // euro symbol large size
   278 	582, 582,  // euro symbol large size
   279 	358, 358,  // euro symbol tiny
   279 	358, 358,  // euro symbol tiny
   280 	SPR_OPENTTD_BASE+11, SPR_OPENTTD_BASE+57, // more icons
   280 	SPR_CURSOR_CANAL, SPR_IMG_FASTFORWARD, // more icons
   281 	648, 648, // nordic char: æ
   281 	648, 648, // nordic char: æ
   282 	616, 616, // nordic char: Æ
   282 	616, 616, // nordic char: Æ
   283 	666, 666, // nordic char: ø
   283 	666, 666, // nordic char: ø
   284 	634, 634, // nordic char: Ø
   284 	634, 634, // nordic char: Ø
   285 	SPR_OPENTTD_BASE+62, SPR_OPENTTD_BASE + 100, // more icons
   285 	SPR_PIN_UP, SPR_CURSOR_CLONE, // more icons
   286 	382, 383, // ¼ ½ tiny
   286 	382, 383, // ¼ ½ tiny
   287 	158, 159, // ¼ ½ medium
   287 	158, 159, // ¼ ½ medium
   288 	606, 607, // ¼ ½ large
   288 	606, 607, // ¼ ½ large
   289 	360, 360, // ¦ tiny
   289 	360, 360, // ¦ tiny
   290 	362, 362, // ¨ tiny
   290 	362, 362, // ¨ tiny
   306 	156, 156, // º medium
   306 	156, 156, // º medium
   307 	604, 604, // º large
   307 	604, 604, // º large
   308 	317, 320, // { | } ~ tiny
   308 	317, 320, // { | } ~ tiny
   309 	 93,  96, // { | } ~ medium
   309 	 93,  96, // { | } ~ medium
   310 	541, 544, // { | } ~ large
   310 	541, 544, // { | } ~ large
   311 	SPR_OPENTTD_BASE + 101, SPR_OPENTTD_BASE + OPENTTD_SPRITES_COUNT, // icon (HOUSE)
   311 	SPR_HOUSE_ICON, SPR_HOUSE_ICON,
   312 	0xffff,
   312 	0xffff,
   313 };
   313 };
   314 
   314 
   315 static byte _sprite_page_to_load = 0xFF;
   315 static byte _sprite_page_to_load = 0xFF;
   316 
   316