mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 23:43:34 +00:00
HDB: Simplify setPixel()
This commit is contained in:
parent
16fd226902
commit
1d1ace6ab5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user