summaryrefslogtreecommitdiff
path: root/src/spritecache.cpp
AgeCommit message (Collapse)Author
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-01-14(svn r27732) -Change: Turn the message about 'missing baseset sprites' from ↵frosch
a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
2014-10-14(svn r27016) -Fix (r27004): Setting font-sprite data failed for some user(s).peter1138
2014-10-12(svn r27004) -Codechange: Make GUI size apply to (sprite-font) text as well.peter1138
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-01-02(svn r26209) -Codechange: remove some template magic and simplify some coderubidium
2014-01-02(svn r26201) -Fix: unscaling by a negative value is the same as scaling by a ↵rubidium
positive number
2013-10-06(svn r25821) -Fix-ish: Sprite 0 was considered available, even if no baseset ↵frosch
was loaded.
2013-06-27(svn r25492) -Doc: Missing comment.michi_cc
2013-03-11(svn r25081) -Fix [FS#5500]: Catch exception anonymously, if the exception ↵frosch
content is not of interest.
2013-03-03(svn r25061) -Fix: When allocation of the sprite cache fails, try to ↵frosch
allocate less memory and display an error message later on.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-26(svn r24858) -Fix [FS#5404]: Make invalid sprite references to mapgen ↵frosch
sprites behave the same as invalid references between recolour and real sprites.
2012-12-19(svn r24828) -Change: For dedicated servers without blitter ignore the ↵frosch
spritecache size setting and always use the minimum.
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.