spritecache.c
Fri, 22 Jun 2007 20:12:09 +0000 rubidium (svn r10280) [0.5] -Backport from trunk (r10109, r10219, r10222, r10230, r10246, r10258): 0.5
Fri, 22 Jun 2007 20:01:02 +0000 rubidium (svn r10274) [0.5] -Backport from trunk (r9961, r10023, r10028, r10030, r10038, r10147): 0.5
Thu, 08 Feb 2007 14:10:14 +0000 rubidium (svn r8636) [0.5] -Backport from trunk (8634, 8635): 0.5
Wed, 17 Jan 2007 23:39:13 +0000 Darkvater (svn r8222) [0.5] -Backport from trunk (lang, r8171, r8186, r8218): 0.5
Thu, 23 Nov 2006 21:19:43 +0000 peter1138 (svn r7242) -Fix: Don't load 1-byte pseudo sprites, as used in some NewGRF sets. If the sprite is ever drawn this will result in a "missing sprite" error instead of undefined misbehaviour leading to segmentation faults...
Sat, 02 Sep 2006 20:34:33 +0000 tron (svn r6347) Undo
Sat, 02 Sep 2006 20:34:04 +0000 tron (svn r6346) -Codechange: Remove redundant assignment
Tue, 22 Aug 2006 14:38:37 +0000 rubidium (svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
Sun, 20 Aug 2006 12:09:32 +0000 truelight (svn r5974) -Codechange: added casts all around the place to make Windows 64bit happy (michi_cc)
Thu, 20 Apr 2006 05:57:47 +0000 peter1138 (svn r4481) - Fix: Validate the given sprite ID when loading a sprite.
Sun, 16 Apr 2006 11:26:23 +0000 peter1138 (svn r4446) - Add function to determine if a Sprite ID exists.
Sat, 22 Oct 2005 06:39:32 +0000 tron (svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
Sat, 10 Sep 2005 08:17:30 +0000 tron (svn r2933) Implement the non-breaking space
Mon, 15 Aug 2005 11:39:13 +0000 tron (svn r2868) Change the way NewGRFs are loaded: The loading process i no longer bolted onto the normal graphics loading.
Sun, 14 Aug 2005 18:10:18 +0000 tron (svn r2866) Move all functions and tables which aren't directly involved in managing the sprite heap to a new file gfxinit.c.
Sat, 13 Aug 2005 21:40:22 +0000 tron (svn r2865) Push the responsibility for allocating the sprite heap into GfxInitSpriteMem()
Thu, 11 Aug 2005 13:09:12 +0000 tron (svn r2855) Make ReadSpriteHeaderSkipData() responsible for detecting the end of a grf file instead of its callers - this simplifies the code a bit
Tue, 09 Aug 2005 12:58:22 +0000 tron (svn r2847) Don't remember the size of sprites during initialisation. Since the sprite loading was altered this is no longer necessary.
Mon, 08 Aug 2005 21:35:27 +0000 tron (svn r2845) Remove sprite size caching, it was unused
Mon, 08 Aug 2005 09:49:47 +0000 tron (svn r2839) Remove stuff missed in r2833, properly calculate the size of two arrays and simplify GetSpriteDimension()?a bit
Sun, 07 Aug 2005 17:52:41 +0000 tron (svn r2833) Remove saving of sprite cache data:
Sun, 07 Aug 2005 11:01:31 +0000 tron (svn r2829) Remove sprite locking, it was never used anyway
Sun, 31 Jul 2005 13:08:08 +0000 bjarni (svn r2764) -Feature: Clone vehicles
Sun, 24 Jul 2005 15:56:31 +0000 celestar (svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers
Sun, 24 Jul 2005 14:12:37 +0000 tron (svn r2701) Insert Id tags into all source files
Fri, 22 Jul 2005 07:02:20 +0000 tron (svn r2673) Include functions.h directly, not globally via openttd.h
Thu, 21 Jul 2005 22:15:02 +0000 tron (svn r2669) Shuffle some more stuff around to reduce dependencies
Wed, 20 Jul 2005 15:38:11 +0000 Darkvater (svn r2652) - CodeChange: show 'too many sprites' in hex value; Patch signed off by Tron
Tue, 19 Jul 2005 06:54:13 +0000 tron (svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
Sat, 09 Jul 2005 09:24:34 +0000 tron (svn r2537) Small changes, especially use fprintf to stderr for warnings and errors instead of plain printf
Sat, 09 Jul 2005 00:14:40 +0000 Darkvater (svn r2536) - Fix: [ 1215999 ] Segmentation fault in main menu - corrupted sample.cat. Flush the output buffer to print the error message before the game crashes. (mcmohr)
Fri, 08 Jul 2005 22:25:24 +0000 tron (svn r2535) Tabs
Wed, 06 Jul 2005 06:18:53 +0000 tron (svn r2523) Readd a comment which got lost in r2522
Tue, 05 Jul 2005 19:54:35 +0000 tron (svn r2522) Reorganize sprite load and decompression in order to remove a special case from the sprite blitter, which decompressed certain sprites every time when blitting them
Thu, 02 Jun 2005 19:30:21 +0000 Darkvater (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
Wed, 18 May 2005 12:53:37 +0000 Darkvater (svn r2349) - Fix: remove warning from release build when assertions are no longer active
Sun, 24 Apr 2005 21:44:45 +0000 Darkvater (svn r2229) - Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The DOS grf file trgi.grf has 6 less sprites than the windows one. This results in some segfaults for certain sprites. Fixed it by added a dummy grf file consisting ofr 6 sprites and loaded when using DOS gfx at the appropiate place.
Sun, 06 Mar 2005 13:57:19 +0000 pasky (svn r1941) Report missing NewGRF file as a fatal error.
Sun, 20 Feb 2005 09:05:28 +0000 tron (svn r1893) If -i was specified respect it
Fri, 18 Feb 2005 08:32:25 +0000 tron (svn r1885) Fix typo in r1884
Fri, 18 Feb 2005 08:29:17 +0000 tron (svn r1884) Change palette detection algorithm: Use the DOS palette if there are no Windows .grfs but at least one DOS .grf
Thu, 17 Feb 2005 15:53:47 +0000 tron (svn r1882) Add a basic check if a non-existent sprite gets accessed.
Sun, 13 Feb 2005 11:18:02 +0000 tron (svn r1867) Include tables/sprites.h only in files which need it
Sun, 13 Feb 2005 08:12:03 +0000 tron (svn r1865) Fix some warnings
Fri, 11 Feb 2005 17:12:11 +0000 tron (svn r1861) Constify Get(Non)Sprite()
Fri, 11 Feb 2005 14:33:43 +0000 tron (svn r1859) Miscellaneous style changes
Fri, 11 Feb 2005 13:46:25 +0000 tron (svn r1858) Let ReadSprite() handle the subtleties of loading a sprite, not its caller
Fri, 11 Feb 2005 13:35:27 +0000 tron (svn r1857) Rewrite parts of the sprite heap. It's functionally equivalent but should be easier to read and maintain.
Thu, 10 Feb 2005 22:26:28 +0000 tron (svn r1856) Make GfxInitSpriteMem() static, because it's only used withing spritecache.c
Thu, 10 Feb 2005 12:26:41 +0000 tron (svn r1855) Handle endianness of sprite headers when loading a sprite, not everytime when accessing it
Thu, 10 Feb 2005 12:14:38 +0000 tron (svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
Thu, 10 Feb 2005 05:43:30 +0000 tron (svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate
Tue, 08 Feb 2005 22:22:42 +0000 tron (svn r1852) Start cleaning up sprite handling:
Sun, 06 Feb 2005 22:25:27 +0000 tron (svn r1833) byte -> char transition: the rest
Sat, 05 Feb 2005 15:58:59 +0000 tron (svn r1803) Move debugging stuff into files of it's own
Mon, 31 Jan 2005 12:04:40 +0000 darkvater (svn r1754) - Fix: you can once again load newgrf files with lots of sprites. Index wasn't reset in second run, thus counting them double.
Fri, 28 Jan 2005 08:56:43 +0000 dominik (svn r1702) - Fix: [ 1110407 ] Game does not crash any more when a newgrf file doesn't exist
Sat, 22 Jan 2005 20:23:18 +0000 tron (svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Wed, 19 Jan 2005 20:55:23 +0000 dominik (svn r1571) Feature: Visually enhanced autorail placing
Sat, 15 Jan 2005 08:58:31 +0000 tron (svn r1520) Trim 134 (!) lines with trailing whitespace ):