mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
GOB: Rename Draw::kSpritesCount to Draw::kSpriteCount
svn-id: r55729
This commit is contained in:
parent
113d5a5a9a
commit
812680d187
@ -67,7 +67,7 @@ Draw::Draw(GobEngine *vm) : _vm(vm) {
|
||||
for (int i = 0; i < kFontCount; i++)
|
||||
_fonts[i] = 0;
|
||||
|
||||
_spritesArray.resize(kSpritesCount);
|
||||
_spritesArray.resize(kSpriteCount);
|
||||
|
||||
_invalidatedCount = 0;
|
||||
for (int i = 0; i < 30; i++) {
|
||||
@ -332,7 +332,7 @@ void Draw::initSpriteSurf(int16 index, int16 width, int16 height,
|
||||
}
|
||||
|
||||
void Draw::freeSprite(int16 index) {
|
||||
assert(index < kSpritesCount);
|
||||
assert(index < kSpriteCount);
|
||||
|
||||
_spritesArray[index].reset();
|
||||
|
||||
|
@ -43,7 +43,7 @@ namespace Gob {
|
||||
|
||||
class Draw {
|
||||
public:
|
||||
static const int kSpritesCount = 100;
|
||||
static const int kSpriteCount = 100;
|
||||
static const int kFontCount = 16;
|
||||
static const int kFrontSurface = 20;
|
||||
static const int kBackSurface = 21;
|
||||
|
@ -822,7 +822,7 @@ void Game::start() {
|
||||
|
||||
_vm->_draw->closeScreen();
|
||||
|
||||
for (int i = 0; i < Draw::kSpritesCount; i++)
|
||||
for (int i = 0; i < Draw::kSpriteCount; i++)
|
||||
_vm->_draw->freeSprite(i);
|
||||
_vm->_draw->_scummvmCursor.reset();
|
||||
}
|
||||
|
@ -427,7 +427,7 @@ bool Inter_Playtoons::readSprite(Common::String file, int32 dataVar,
|
||||
}
|
||||
|
||||
int index = -size - 1;
|
||||
if ((index < 0) || (index >= Draw::kSpritesCount) || !_vm->_draw->_spritesArray[index]) {
|
||||
if ((index < 0) || (index >= Draw::kSpriteCount) || !_vm->_draw->_spritesArray[index]) {
|
||||
warning("No such sprite");
|
||||
return false;
|
||||
}
|
||||
|
@ -258,7 +258,7 @@ bool TempSpriteHandler::load(int16 dataVar, int32 size, int32 offset) {
|
||||
|
||||
// Index sane?
|
||||
int index = getIndex(size);
|
||||
if ((index < 0) || (index >= Draw::kSpritesCount))
|
||||
if ((index < 0) || (index >= Draw::kSpriteCount))
|
||||
return false;
|
||||
|
||||
SurfacePtr sprite = _vm->_draw->_spritesArray[index];
|
||||
@ -333,7 +333,7 @@ SurfacePtr TempSpriteHandler::createSprite(int16 dataVar, int32 size, int32 offs
|
||||
|
||||
// Index sane?
|
||||
int index = getIndex(size);
|
||||
if ((index < 0) || (index >= Draw::kSpritesCount))
|
||||
if ((index < 0) || (index >= Draw::kSpriteCount))
|
||||
return sprt;
|
||||
|
||||
// Sprite exists?
|
||||
|
Loading…
x
Reference in New Issue
Block a user