mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Update the internal naming convention for pixel formats.
--HG-- branch : minor
This commit is contained in:
@@ -910,7 +910,7 @@ bool Window::setIcon(love::image::ImageData *imgd)
|
||||
if (!imgd)
|
||||
return false;
|
||||
|
||||
if (imgd->getFormat() != PIXELFORMAT_RGBA8)
|
||||
if (imgd->getFormat() != PIXELFORMAT_RGBA8_UNORM)
|
||||
throw love::Exception("setIcon only accepts 32-bit RGBA images.");
|
||||
|
||||
icon.set(imgd);
|
||||
|
||||
Reference in New Issue
Block a user