summaryrefslogtreecommitdiff
path: root/src/spriteloader
AgeCommit message (Collapse)Author
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-06-05Add: introduce CMake for project managementPatric Stout
CMake works on all our supported platforms, like MSVC, Mingw, GCC, Clang, and many more. It allows for a single way of doing things, so no longer we need shell scripts and vbs scripts to work on all our supported platforms. Additionally, CMake allows to generate project files for like MSVC, KDevelop, etc. This heavily reduces the lines of code we need to support multiple platforms from a project perspective. Addtiionally, this heavily improves our detection of libraries, etc.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-15Codechange: No need for AutoFreePtr if there's std::unique_ptr.Michael Lutz
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
2013-11-26(svn r26132) -Fix-ish: prevent issues due to overflowing multiplications by ↵rubidium
limiting the size of full zoom sprites to about 32kix32ki
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 r23894) -Fix (r23893): Use the right variable, not the one that's ↵michi_cc
always going to be 0.
2012-02-04(svn r23893) -Change: [NewGRF] Extended chunked sprite encoding to work for ↵michi_cc
bigger sprites.
2012-02-04(svn r23890) -Add: [NewGRF] Support for RealSprites with multiple zoom levels.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 r23881) -Codechange: Move GRF sprite decoding into a separate function.michi_cc
2011-12-24(svn r23670) -Feature: Add ability to adjust brightness of colour after ↵peter1138
remapping for 32bpp sprites
2011-12-15(svn r23527) -Codechange: unify colo(u)r as far as it goesrubidium
2011-12-10(svn r23474) -Codechange: move the declaration error related functions to ↵rubidium
error.h
2011-11-25(svn r23324) -Fix (r15555): Don't free reusable buffer.peter1138
2011-11-24(svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.peter1138
2011-11-24(svn r23315) -Codechange: Only encode sprites for zoom levels that will be used.peter1138
2011-10-06(svn r23008) -Add: Palette detection and conversion for the M part of 32bpp ↵frosch
sprites.
2011-09-03(svn r22878) -Fix (r22873-ish): Check range before casting to uint16.frosch
2011-09-02(svn r22873) -Fix [FS#4747]: Validate image dimensions before loading. ↵michi_cc
(Based on patch by monoid)
2011-08-24(svn r22827) -Codechange: pass the/a more proper sub directory when opening ↵rubidium
(some) files instead of the default one
2011-08-24(svn r22825) -Codechange: pass subdir to FioOpenFilerubidium
2011-05-04(svn r22419) -Change: Always use the DOS palette for drawing.frosch
-Remove: the '-i' option for palette selection.
2011-05-01(svn r22406) -Document: some more "random-ish" tidbitsrubidium
2011-01-22(svn r21890) -Cleanup: remove some unneeded includesrubidium
2011-01-22(svn r21886) -Codechange: move documentation towards the code to make it ↵rubidium
more likely to be updated [n].
2010-07-24(svn r20211) -Codechange: Indented code should have curly braces around it.alberth
2010-04-14(svn r19628) -Change: support the tRNS chunk to read transparency ↵rubidium
information for RGB PNGs (Szvengar)
2010-02-24(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bitsmatz
2010-01-22(svn r18891) -Fix: Avoid duplicate path separator when searching for PNG ↵peter1138
files which prevented tar-lookups.
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
2010-01-08(svn r18756) -Codechange: direct accesses to png_*_struct members are deprecatedglx
2010-01-01(svn r18683) -Fix: it's not an otherrubidium
2009-12-03(svn r18391) -Fix (r0): (Invalid) GRFs could trigger invalid reads.frosch
2009-10-31(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string ↵alberth
before the details string. Gentlemen, swap your string parameters.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
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.
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-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.