mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Merge Image and Canvas GL backend classes into new common Texture class.
This commit is contained in:
@@ -933,7 +933,7 @@ bool Window::setIcon(love::image::ImageData *imgd)
|
||||
|
||||
int w = imgd->getWidth();
|
||||
int h = imgd->getHeight();
|
||||
int bytesperpixel = (int) getPixelFormatSize(imgd->getFormat());
|
||||
int bytesperpixel = (int) getPixelFormatBlockSize(imgd->getFormat());
|
||||
int pitch = w * bytesperpixel;
|
||||
|
||||
SDL_Surface *sdlicon = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user