mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
bmp isn't a supported format for ImageData:encode.
--HG-- branch : minor
This commit is contained in:
@@ -289,7 +289,7 @@ private:
|
||||
* indices[i*6 + 1] = i*4 + 1;
|
||||
* indices[i*6 + 2] = i*4 + 2;
|
||||
*
|
||||
* indices[i*6 + 3] = i*4 + 0;
|
||||
* indices[i*6 + 3] = i*4 + 1;
|
||||
* indices[i*6 + 4] = i*4 + 2;
|
||||
* indices[i*6 + 5] = i*4 + 3;
|
||||
*
|
||||
|
||||
@@ -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