Commit Graph

37 Commits (31c119cc57415ab32e4b580ba689192f86e8175c)

Author SHA1 Message Date
alberth 137e2b64c9 (svn r20211) -Codechange: Indented code should have curly braces around it. 14 years ago
rubidium 0f6d129840 (svn r19628) -Change: support the tRNS chunk to read transparency information for RGB PNGs (Szvengar) 14 years ago
smatz 5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
peter1138 1c2f27d9e6 (svn r18891) -Fix: Avoid duplicate path separator when searching for PNG files which prevented tar-lookups. 15 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
glx f4fe465e3b (svn r18756) -Codechange: direct accesses to png_*_struct members are deprecated 15 years ago
rubidium 3de085a143 (svn r18683) -Fix: it's not an other 15 years ago
frosch 48efc698bb (svn r18391) -Fix (r0): (Invalid) GRFs could trigger invalid reads. 15 years ago
alberth 5a97b64d73 (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 9ab8a2aab1 (svn r15556) -Change: don't temporary malloc+free when encoding sprites, just reuse the same piece of allocated memory for each encoding. 16 years ago
rubidium 44821e60eb (svn r15555) -Codechange: remove the mallocs + frees for temporary data from loading sprites. 16 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 2fec4d8e3c (svn r14610) -Fix [FS#2415]: possible stack corruption when reading corrupted sprites.
-Change: harden the sprite reading routine against corrupt sprites.
16 years ago
rubidium 9ca1972e01 (svn r14229) -Feature: allow overriding the palette of the base GRFs. This way you can play with NewGRFs made for the Windows palette with the DOS palettes base GRFs (and vice versa). Note that for this to work correctly ALL NewGRFs must use the same palette; mix and match is not yet supported. 16 years ago
rubidium c358955127 (svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites. 16 years ago
rubidium a20b833516 (svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too. 16 years ago
rubidium 943031bdaf (svn r14190) -Codechange: use alloc instead of malloc+free when the allocated memory shouldn't be used after the function ended. 16 years ago
rubidium 33e18c236d (svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings. 16 years ago
rubidium db37b017ef (svn r13013) -Fix: GCC 4.3 warning about a clobbering mask due to longjmp. This can't be solved by using exceptions because the longjmp is needed for PNG (C-code) handling. 16 years ago
rubidium 1ce0b03bf0 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
peter1138 00286005ba (svn r12453) -Fix [FS#1880]: Remove broken endian-dependent code and unnecessary rgb to bgr swapping. 16 years ago
peter1138 78156065cf (svn r11940) -Codechange: Store short filename once per open file instead of once per sprite cache entry. Not all file types need this, but most of the time no sprite cache entry needed it either. 17 years ago
glx bba1a62db1 (svn r11914) -Documentation: fix some @file statement 17 years ago
rubidium 7f037d15d7 (svn r11704) -Codechange: remove another bunch of useless includes. 17 years ago
rubidium 851f19b341 (svn r11694) -Codechange: move more endianness related stuff to endian_func.hpp. 17 years ago
rubidium 00c9d3ef20 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 17 years ago
rubidium 507463e420 (svn r11684) -Codechange: split gfx.h in a type and functional header. 17 years ago
rubidium 33cdfc71dc (svn r11597) -Change: replace all remaining instances of (re|m|c)alloc with (Re|M|C)allocT and add a check for out-of-memory situations to the *allocT functions. 17 years ago
truelight e545220563 (svn r11095) -Codechange: don't abuse 'file_pos' by storing the file_slot in it too, but use a nice seperate variable for it
-Note: on a side-note, this allows files bigger than 16+ MiB, needed for tar-support
17 years ago
rubidium daafda6f62 (svn r10365) -Fix: compiling without png and networking support under MSVC. 17 years ago
truelight 083504c12e (svn r10156) -Fix: PNG loader can now load 8bpp palette images and greyscale images 17 years ago
truelight 19513f2604 (svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
-Codechange: store the SpriteID in the spritecache too
-Add: add a PNG loader for graphical files
-Documentation: added a document to explain the PNG format
17 years ago
truelight f782a311f8 (svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
-Add: added a new renderer and blitter to make room for some optimized bpp
-Fix: fill the alpha channel in the grf-spriteloader
17 years ago
peter1138 8f7dea3f4f (svn r10113) -Fix (r10092): Missing svn properties and some Id/@file comments 17 years ago
truelight 27febd474c (svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
-Add: make it possible to pick your own blitter (-b <blitter>, -h for overview)
-Add: added a new optimized 8bpp blitter (default, caches sprites of all zoom-levels)
-Add: added a debug 8bpp blitter and a very slow normal 8bpp blitter
17 years ago