mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
bmp isn't a supported format for ImageData:encode.
--HG-- branch : minor
This commit is contained in:
@@ -179,7 +179,6 @@ bool ImageData::getConstant(ImageData::Format in, const char *&out)
|
||||
StringMap<ImageData::Format, ImageData::FORMAT_MAX_ENUM>::Entry ImageData::formatEntries[] =
|
||||
{
|
||||
{"tga", ImageData::FORMAT_TGA},
|
||||
{"bmp", ImageData::FORMAT_BMP},
|
||||
{"jpg", ImageData::FORMAT_JPG},
|
||||
{"png", ImageData::FORMAT_PNG},
|
||||
};
|
||||
|
||||
@@ -50,7 +50,6 @@ public:
|
||||
enum Format
|
||||
{
|
||||
FORMAT_TGA,
|
||||
FORMAT_BMP,
|
||||
FORMAT_JPG,
|
||||
FORMAT_PNG,
|
||||
FORMAT_MAX_ENUM
|
||||
|
||||
@@ -55,8 +55,6 @@ static CFStringRef getFormatType(ImageData::Format format)
|
||||
{
|
||||
switch (format)
|
||||
{
|
||||
case ImageData::FORMAT_BMP:
|
||||
return kUTTypeBMP;
|
||||
case ImageData::FORMAT_JPG:
|
||||
return kUTTypeJPEG;
|
||||
case ImageData::FORMAT_TGA:
|
||||
|
||||
Reference in New Issue
Block a user