Spectre/Graphics/PixelFormat: Rework
source/Graphics/Image/IcoFormat.cpp: use new PixelFormat. source/Graphics/Image.cpp: update to confirm with new PixelFormat Spectre/Graphics/PixelFormat: add PF_getNumChannels() Spectre/Graphics/PixelFormat: Rework the enum with proper naming convention and documentation.
This commit is contained in:
parent
82add50157
commit
c731cda1a2
5 changed files with 73 additions and 16 deletions
|
|
@ -61,9 +61,9 @@ bool IcoFormat::decode(Image& img, const unsigned char *data, unsigned size)
|
|||
largest = findLargestImage(ent, num_ent);
|
||||
|
||||
if (largest->bpp == 32) {
|
||||
format = PixelFormat::PF_32BGRA;
|
||||
format = PixelFormat::PF_BGRA;
|
||||
} else {
|
||||
format = PixelFormat::PF_32BGR;
|
||||
format = PixelFormat::PF_BGR;
|
||||
}
|
||||
|
||||
// NOTE: plus 40 bytes here to skip over the DIB header.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue