| 254 | } |
| 255 | |
| 256 | void Bitmap::plot(int x, int y, u8 color) |
| 257 | { |
| 258 | if ( x < 0 || y < 0 || x >= this->width() || y >= this->height() ) |
| 259 | return; |
| 260 | this->plotX(x, y, color); |
| 261 | } |
| 262 | void Bitmap::plotX(int x, int y, u8 col) |
| 263 | { |
| 264 | this->data[ x + y*this->width() ] = col; |