HDB: Simplify setPixel()

This commit is contained in:
Nipun Garg 2019-08-05 11:48:42 +05:30 committed by Eugene Sandulenko
parent 16fd226902
commit 1d1ace6ab5

View File

@ -451,9 +451,7 @@ Tile *Gfx::loadIcon(const char *tileName) {
}
void Gfx::setPixel(int x, int y, uint16 color) {
uint16 *ptr = (uint16 *)_globalSurface.getBasePtr(0, y);
ptr += x;
*ptr = color;
*(uint16 *)_globalSurface.getBasePtr(x, y) = color;
}
Tile *Gfx::getTile(int index) {