summaryrefslogtreecommitdiff
path: root/src/spritecache.cpp
AgeCommit message (Collapse)Author
2021-06-13Codechange: convert printf DEBUG statements to fmt Debug statementsrubidium42
2021-06-03Codechange: use "[[maybe_unused]]" instead of a wide variety of other ways ↵Patric Stout
we had While at it, replace OTTD_ASSERT with WITH_ASSERT, as this is always set if assert() is valid. No matter if NDEBUG is set or not.
2021-05-08Codechange: introduce SpriteFile to be used by the sprite loader instead of ↵Rubidium
the global FIO slot functionality
2021-04-01Fix #8919: Release builds with asserts enabled (#8925)Charles Pigott
2021-04-01Codechange: Suppress warnings when asserts are disabled (#8917)Patric Stout
2021-02-22Codechange: Allow video drivers to handle the cursor themselves.Michael Lutz
2021-02-22Codechange: Make the simple Malloc sprite allocator globally usable.Michael Lutz
2021-02-22Codechange: Give sprite encoders a hint which colour components of a sprite ↵Michael Lutz
are filled with useful information.
2021-02-22Add: Allow sprite encoders (blitters) to specify an alignment for sprite ↵Michael Lutz
width and height.
2021-02-22Codechange: Allow for using a sprite encoder that is not the currently ↵Michael Lutz
active blitter when loading a sprite.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-01-26Feature: NewGRF callback profiling (#7868)Niels Martin Hansen
Adds a console command newgrf_profile to collect some profiling data about NewGRF action 2 callbacks and produce a CSV file.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-29Codechange: Remove SpriteTypeByte typeCharles Pigott
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-02-23Feature: Add option to adjust font size separately from GUI size. (#7003)Greg Carlin
Adds an option in the "Game Options" next to "Interface Size" called "Font Size". Available options are normal, double, and quad.
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