src/gfxinit.cpp
changeset 8907 5104ad700e31
parent 8871 08e81cca0a66
child 8928 b3c4a8968fe1
equal deleted inserted replaced
8906:09cdaac8a43c 8907:5104ad700e31
   197 
   197 
   198 	if (add_pos != error_msg) ShowInfoF(error_msg);
   198 	if (add_pos != error_msg) ShowInfoF(error_msg);
   199 }
   199 }
   200 
   200 
   201 
   201 
   202 static const SpriteID trg1idx[] = {
       
   203 	   0,    1, ///< Mouse cursor, ZZZ
       
   204 /* Medium font */
       
   205 	   2,   92, ///< ' ' till 'z'
       
   206 	SKIP,   36,
       
   207 	 160,  160, ///< Move Ÿ to the correct position
       
   208 	  98,   98, ///< Up arrow
       
   209 	 131,  133,
       
   210 	SKIP,    1, ///< skip currency sign
       
   211 	 135,  135,
       
   212 	SKIP,    1,
       
   213 	 137,  137,
       
   214 	SKIP,    1,
       
   215 	 139,  139,
       
   216 	 140,  140, ///< @todo Down arrow
       
   217 	 141,  141,
       
   218 	 142,  142, ///< @todo Check mark
       
   219 	 143,  143, ///< @todo Cross
       
   220 	 144,  144,
       
   221 	 145,  145, ///< @todo Right arrow
       
   222 	 146,  149,
       
   223 	 118,  122, ///< Transport markers
       
   224 	SKIP,    2,
       
   225 	 157,  157,
       
   226 	 114,  115, ///< Small up/down arrows
       
   227 	SKIP,    1,
       
   228 	 161,  225,
       
   229 /* Small font */
       
   230 	 226,  316, ///< ' ' till 'z'
       
   231 	SKIP,   36,
       
   232 	 384,  384, ///< Move Ÿ to the correct position
       
   233 	 322,  322, ///< Up arrow
       
   234 	 355,  357,
       
   235 	SKIP,    1, ///< skip currency sign
       
   236 	 359,  359,
       
   237 	SKIP,    1,
       
   238 	 361,  361,
       
   239 	SKIP,    1,
       
   240 	 363,  363,
       
   241 	 364,  364, ////< @todo Down arrow
       
   242 	 365,  366,
       
   243 	SKIP,    1,
       
   244 	 368,  368,
       
   245 	 369,  369, ///< @todo Right arrow
       
   246 	 370,  373,
       
   247 	SKIP,    7,
       
   248 	 381,  381,
       
   249 	SKIP,    3,
       
   250 	 385,  449,
       
   251 /* Big font */
       
   252 	 450,  540, ///< ' ' till 'z'
       
   253 	SKIP,   36,
       
   254 	 608,  608, ///< Move Ÿ to the correct position
       
   255 	SKIP,    1,
       
   256 	 579,  581,
       
   257 	SKIP,    1,
       
   258 	 583,  583,
       
   259 	SKIP,    5,
       
   260 	 589,  589,
       
   261 	SKIP,   15,
       
   262 	 605,  605,
       
   263 	SKIP,    3,
       
   264 	 609,  625,
       
   265 	SKIP,    1,
       
   266 	 627,  632,
       
   267 	SKIP,    1,
       
   268 	 634,  639,
       
   269 	SKIP,    1,
       
   270 	 641,  657,
       
   271 	SKIP,    1,
       
   272 	 659,  664,
       
   273 	SKIP,    2,
       
   274 	 667,  671,
       
   275 	SKIP,    1,
       
   276 	 673,  673,
       
   277 /* Graphics */
       
   278 	 674, 4792,
       
   279 	END
       
   280 };
       
   281 
       
   282 static void LoadSpriteTables()
   202 static void LoadSpriteTables()
   283 {
   203 {
   284 	const FileList *files = _use_dos_palette ? &files_dos : &files_win;
   204 	const FileList *files = _use_dos_palette ? &files_dos : &files_win;
   285 	uint i = FIRST_GRF_SLOT;
   205 	uint i = FIRST_GRF_SLOT;
   286 
   206 
   287 	LoadGrfIndexed(files->basic[0].filename, trg1idx, i++);
   207 	LoadGrfFile(files->basic[0].filename, 0, i++);
   288 	DupSprite(  2, 130); // non-breaking space medium
       
   289 	DupSprite(226, 354); // non-breaking space tiny
       
   290 	DupSprite(450, 578); // non-breaking space large
       
   291 
   208 
   292 	/*
   209 	/*
   293 	 * The second basic file always starts at the given location and does
   210 	 * The second basic file always starts at the given location and does
   294 	 * contain a different amount of sprites depending on the "type"; DOS
   211 	 * contain a different amount of sprites depending on the "type"; DOS
   295 	 * has a few sprites less. However, we do not care about those missing
   212 	 * has a few sprites less. However, we do not care about those missing