mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Simplified an internal Variant constructor to be more intuitive to use.
--HG-- branch : minor
This commit is contained in:
@@ -487,11 +487,8 @@ static void screenshotChannelCallback(const Graphics::ScreenshotInfo *info, love
|
||||
|
||||
if (channel != nullptr)
|
||||
{
|
||||
Proxy p;
|
||||
p.type = &love::image::ImageData::type;
|
||||
p.object = i;
|
||||
if (i != nullptr)
|
||||
channel->push(Variant(p.type, &p));
|
||||
channel->push(Variant(&love::image::ImageData::type, i));
|
||||
|
||||
channel->release();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user