summaryrefslogtreecommitdiff
path: root/src/spritecache.cpp
AgeCommit message (Collapse)Author
2012-05-15(svn r24252) -Fix [FS#5162]: Change the unit of the sprite-cache size ↵frosch
setting from megabytes to megapixels, so it depends on the blitter being used. Also increase it from 64 to 128, and change the name in the cfg file, so everyone gets the new default.
2012-02-25(svn r23986) -Fix (r23889): Invalid reads when scaling an odd-sized sprite ↵frosch
smaller.
2012-02-23(svn r23976) -Fix (r23889): Sprites of different zoom levels were not always ↵michi_cc
padded correctly to a common size.
2012-02-04(svn r23898) -Remove: PNG sprite loader.michi_cc
2012-02-04(svn r23897) -Feature: [NewGRF] 32bpp sprites in GRFs.michi_cc
2012-02-04(svn r23896) -Fix (r23884): Don't free unallocated memory.michi_cc
2012-02-04(svn r23889) -Codechange: Centralise sprite resizing in one place. (peter1138)michi_cc
2012-02-04(svn r23887) -Feature: [NewGRF] Support for container version 2.michi_cc
2012-02-04(svn r23885) -Codechange: Use the GRF sprite loader for then mapgen sprites ↵michi_cc
as well.
2012-02-04(svn r23884) -Codechange: Store recolour sprites in memory directly during ↵michi_cc
GRF loading.
2011-11-24(svn r23315) -Codechange: Only encode sprites for zoom levels that will be used.peter1138
2011-05-04(svn r22419) -Change: Always use the DOS palette for drawing.frosch
-Remove: the '-i' option for palette selection.
2011-01-14(svn r21788) -Codechange: Enable GetRawSprite() to also load sprites not ↵frosch
using the spritecache but a custom allocator function.
2011-01-14(svn r21787) -Codechange: Pass the allocator function to use to ReadSprite().frosch
2011-01-14(svn r21785) -Codechange: Make ReadSprite() not operate on the sprite chache ↵frosch
directly.
2011-01-14(svn r21783) -Cleanup (r14997): Remove redundant assignment.frosch
2010-08-01(svn r20286) -Codechange: Unify end of doxygen comments.frosch
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-07-29(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).terkhen
2010-04-25(svn r19723) -Add: a simple sprite alignment helper. It does not store the ↵rubidium
new offsets anywhere so as soon as the sprite is reloaded the offsets are gone (use a bigger sprite cache if this happens). Also anything that reloads NewGRFs (new games, loading games or (re)applying NewGRFs) clears the sprite cache and as such resets the offsets.
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-11-09(svn r18028) -Codechange: unglobalise some functionsrubidium
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-20(svn r17596) -Codechange: constify some tablessmatz
2009-09-19(svn r17579) -Fix: remove doxygen docs for removed parameters, or change ↵rubidium
@param to @tparam if necessary
2009-09-19(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, ↵rubidium
which were sometimes missing and sometimes just typos
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-06-01(svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD ↵smatz
for months. All attempts to do another workaround failed.
2009-05-24(svn r16421) -Codechange: do not unnecessarily remove constness or ↵rubidium
unnecessarily add it.
2009-05-24(svn r16415) -Fix (r13008): some 64bit architectures require size_t to be ↵smatz
aligned at 8-byte boundary, ensure it for MemBlock
2009-05-10(svn r16269) -Codechange: use gcc's ability to check parameters sent to ↵smatz
printf-like functions -Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
2009-03-19(svn r15767) -Fix: infinite loop when skipping sprites when a GRF is invalid ↵rubidium
(or truncated).
2009-02-23(svn r15556) -Change: don't temporary malloc+free when encoding sprites, ↵rubidium
just reuse the same piece of allocated memory for each encoding.
2009-02-23(svn r15555) -Codechange: remove the mallocs + frees for temporary data from ↵rubidium
loading sprites.
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-02-07(svn r15391) -Fix (r14997): loading font sprites should not trigger a ↵rubidium
palette conversion.
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-12(svn r15031) -Fix (r15027): merge reverted r15026, so do it once againsmatz
2009-01-12(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to ↵truebrain
see. NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks
2009-01-12(svn r15026) -Codechange: use SpriteTypeByte instead of SpriteType in the ↵smatz
SpriteCache struct in order to make it smaller
2009-01-11(svn r14998) -Codechange: warn once about misuse of each sprite, not once ↵smatz
about misuse of any sprite
2009-01-11(svn r14997) -Fix [FS#2524](r14223): when handling invalid sprites, entry in ↵smatz
spritecache data could lose its parent
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2008-11-23(svn r14610) -Fix [FS#2415]: possible stack corruption when reading ↵rubidium
corrupted sprites. -Change: harden the sprite reading routine against corrupt sprites.
2008-10-14(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)rubidium
2008-09-02(svn r14229) -Feature: allow overriding the palette of the base GRFs. This ↵rubidium
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.
2008-09-02(svn r14223) -Codechange: make GetSprite aware of the 4 different types of ↵rubidium
sprites: fonts, recolour, mapgen and normal sprites.
2008-08-31(svn r14214) -Codechange: move another TTD graphics bug into the GRF; height ↵rubidium
problem of sprite #142.
2008-08-31(svn r14199) -Codechange: split fileio.h into fileio_type.h and ↵rubidium
fileio_func.h so not everything that includes saveload.h needs to include everything else too.
2008-08-30(svn r14193) -Fix (r14191): don't put an unsigned 0x80 in a signed int8 as ↵rubidium
that's not what you want.