setPixel with 'double'-coordinates
This commit is contained in:
parent
d57ef636f2
commit
705e8c7d77
@ -89,6 +89,10 @@ public:
|
||||
fillRect(0, 0, width, height, Black);
|
||||
}
|
||||
|
||||
void setPixel(const double x, const double y, const RGBA color) {
|
||||
setPixel(static_cast<int>(round(x)), static_cast<int>(round(y)), color);
|
||||
}
|
||||
|
||||
void setPixel(const int x, const int y, const RGBA color) {
|
||||
if (x < 0 || x >= width || y < 0 || y >= height) {
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user