summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/ICOLoader.cpp
AgeCommit message (Collapse)Author
2020-08-12Meta: Replace remaining LibM/math.h includes with math.hLinus Groh
2020-08-06Refactor: Expose const_cast by removing ByteBuffer::warp(const void*, size_t)asynts
This function did a const_cast internally which made the call side look "safe". This method is removed completely and call sites are replaced with ByteBuffer::wrap(const_cast<void*>(data), size) which makes the behaviour obvious.
2020-08-04Revert "LibM: Always include <math.h> instead of <LibM/math.h>"Andreas Kling
This reverts commit dc12cbca41b8b667ae7ced1066647d47186d1557. Sadly this broke the build due to some confusion about <new>. Reverting until this can be solved fully.
2020-08-04LibM: Always include <math.h> instead of <LibM/math.h>Andreas Kling
This makes Lagom pick up the host math.h, which is what we want.
2020-06-21LibGfx: Prefer the largest image in the file when loading an ICOPaul Roukema
Since the current image handling APIs don't provide a way to handle a file which can contain multiple images, we just pick the largest one. This gives the best chance of a good looking result.
2020-06-21 LibGfx: Add support for uncompressed/classic ICO filesPaul Roukema
This add support to the ICO file decoder for loading uncompressed bitmap icon files. It is limited to 32-bit color icons, no 4/8/16 bit or paletted formats yet. This is in addition to the PNG compressed ICO format support added previously. With this we can now load the favicons for github, google and twitter.
2020-06-21LibGfx: Initial support for ICO image files.Paul Roukema
This adds support for loading the first image from ICO format images only if they are PNG encoded. This is useful for loading favicons, which are sometimes PNGs with an ICO extension and sometimes actual ICO files. In particular we can now load the favicon from new.ycombinator.com