mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Improved performance of ImageData:getPixel and ImageData:mapPixel
This commit is contained in:
@@ -80,8 +80,6 @@ pixel ImageData::getPixel(int x, int y)
|
||||
if (!inside(x, y))
|
||||
throw love::Exception("Attempt to get out-of-range pixel!");
|
||||
|
||||
Lock lock(mutex);
|
||||
|
||||
pixel *pixels = (pixel *)getData();
|
||||
return pixels[y*getWidth()+x];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user