summaryrefslogtreecommitdiff
path: root/src/gfxinit.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-25 13:48:39 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-25 13:48:39 +0000
commiteeeeeb9336b28d53788ca9c909209908fbbb3ee2 (patch)
treefeb41fd20ff60b8a57be1da466861b76a6303eda /src/gfxinit.cpp
parente99c34bef4a4ddbdacd807044c321e36cf4cd630 (diff)
downloadopenttd-eeeeeb9336b28d53788ca9c909209908fbbb3ee2.tar.xz
(svn r11981) -Fix [FS#1698]: Use unicode glyph mapping to fix up missing/shuffled sprites in original data files instead of shuffling or skipping
sprites directly. Some required glyphs were not loaded. -Fix: Large capital U with grave (Ù) along with some other glyphs are broken in the original data files, so do no display them.
Diffstat (limited to 'src/gfxinit.cpp')
-rw-r--r--src/gfxinit.cpp85
1 files changed, 1 insertions, 84 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp
index 67b126002..4d67a2544 100644
--- a/src/gfxinit.cpp
+++ b/src/gfxinit.cpp
@@ -199,95 +199,12 @@ void CheckExternalFiles()
}
-static const SpriteID trg1idx[] = {
- 0, 1, ///< Mouse cursor, ZZZ
-/* Medium font */
- 2, 92, ///< ' ' till 'z'
- SKIP, 36,
- 160, 160, ///< Move Ÿ to the correct position
- 98, 98, ///< Up arrow
- 131, 133,
- SKIP, 1, ///< skip currency sign
- 135, 135,
- SKIP, 1,
- 137, 137,
- SKIP, 1,
- 139, 139,
- 140, 140, ///< @todo Down arrow
- 141, 141,
- 142, 142, ///< @todo Check mark
- 143, 143, ///< @todo Cross
- 144, 144,
- 145, 145, ///< @todo Right arrow
- 146, 149,
- 118, 122, ///< Transport markers
- SKIP, 2,
- 157, 157,
- 114, 115, ///< Small up/down arrows
- SKIP, 1,
- 161, 225,
-/* Small font */
- 226, 316, ///< ' ' till 'z'
- SKIP, 36,
- 384, 384, ///< Move Ÿ to the correct position
- 322, 322, ///< Up arrow
- 355, 357,
- SKIP, 1, ///< skip currency sign
- 359, 359,
- SKIP, 1,
- 361, 361,
- SKIP, 1,
- 363, 363,
- 364, 364, ////< @todo Down arrow
- 365, 366,
- SKIP, 1,
- 368, 368,
- 369, 369, ///< @todo Right arrow
- 370, 373,
- SKIP, 7,
- 381, 381,
- SKIP, 3,
- 385, 449,
-/* Big font */
- 450, 540, ///< ' ' till 'z'
- SKIP, 36,
- 608, 608, ///< Move Ÿ to the correct position
- SKIP, 1,
- 579, 581,
- SKIP, 1,
- 583, 583,
- SKIP, 5,
- 589, 589,
- SKIP, 15,
- 605, 605,
- SKIP, 3,
- 609, 625,
- SKIP, 1,
- 627, 632,
- SKIP, 1,
- 634, 639,
- SKIP, 1,
- 641, 657,
- SKIP, 1,
- 659, 664,
- SKIP, 2,
- 667, 671,
- SKIP, 1,
- 673, 673,
-/* Graphics */
- 674, 4792,
- END
-};
-
static void LoadSpriteTables()
{
const FileList *files = _use_dos_palette ? &files_dos : &files_win;
uint i = FIRST_GRF_SLOT;
- LoadGrfIndexed(files->basic[0].filename, trg1idx, i++);
- DupSprite( 2, 130); // non-breaking space medium
- DupSprite(226, 354); // non-breaking space tiny
- DupSprite(450, 578); // non-breaking space large
+ LoadGrfFile(files->basic[0].filename, 0, i++);
/*
* The second basic file always starts at the given location and does