PRINCE: Cursor - typo fix
This commit is contained in:
parent
3c29d61f67
commit
d902842f7e
1 changed files with 3 additions and 3 deletions
|
@ -40,12 +40,12 @@ Cursor::~Cursor() {
|
|||
bool Cursor::loadFromStream(Common::SeekableReadStream &stream) {
|
||||
stream.skip(4);
|
||||
uint16 width = stream.readUint16LE();
|
||||
uint16 heigth = stream.readUint16LE();
|
||||
uint16 height = stream.readUint16LE();
|
||||
|
||||
_surface = new Graphics::Surface();
|
||||
_surface->create(width, heigth, Graphics::PixelFormat::createFormatCLUT8());
|
||||
_surface->create(width, height, Graphics::PixelFormat::createFormatCLUT8());
|
||||
|
||||
for (int h = 0; h < heigth; h++) {
|
||||
for (int h = 0; h < height; h++) {
|
||||
stream.read(_surface->getBasePtr(0, h), width);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue