mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
eliminated a whole bunch of gcc warnings
This commit is contained in:
@@ -154,16 +154,16 @@ namespace devil
|
||||
|
||||
void ImageData::setPixel(int x, int y, pixel c)
|
||||
{
|
||||
int tx = x > width-1 ? width-1 : x;
|
||||
int ty = y > height-1 ? height-1 : y;
|
||||
//int tx = x > width-1 ? width-1 : x;
|
||||
//int ty = y > height-1 ? height-1 : y; // not using these seems to not break anything
|
||||
pixel * pixels = (pixel *)getData();
|
||||
pixels[y*width+x] = c;
|
||||
}
|
||||
|
||||
pixel ImageData::getPixel(int x, int y) const
|
||||
{
|
||||
int tx = x > width-1 ? width-1 : x;
|
||||
int ty = y > height-1 ? height-1 : y;
|
||||
//int tx = x > width-1 ? width-1 : x;
|
||||
//int ty = y > height-1 ? height-1 : y; // not using these seems to not break anything
|
||||
pixel * pixels = (pixel *)getData();
|
||||
return pixels[y*width+x];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user