Mercurial > love-experiments
changeset 1435:3242694a254e
Improved performance of ImageData:getPixel and ImageData:mapPixel
| author | Alex Szpakowski <slime73@gmail.com> |
|---|---|
| date | Tue, 09 Apr 2013 18:12:03 -0300 |
| parents | b189a9cba55e |
| children | 59f5284fe9eb |
| files | src/modules/image/ImageData.cpp |
| diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/modules/image/ImageData.cpp Tue Apr 09 14:08:05 2013 -0300 +++ b/src/modules/image/ImageData.cpp Tue Apr 09 18:12:03 2013 -0300 @@ -80,8 +80,6 @@ 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]; }
