Make sure that the currently buggy dirty rectangle handling code is not used. Also, make sure that the resource data pointer is initialized to zero
svn-id: r39655
This commit is contained in:
parent
76c0d08200
commit
95d92b0d24
2 changed files with 6 additions and 8 deletions
|
@ -49,7 +49,7 @@ Render::Render(SagaEngine *vm, OSystem *system) {
|
|||
_vm = vm;
|
||||
_system = system;
|
||||
_initialized = false;
|
||||
_fullRefresh = false;
|
||||
_fullRefresh = true;
|
||||
|
||||
#ifdef SAGA_DEBUG
|
||||
// Initialize FPS timer callback
|
||||
|
@ -83,10 +83,6 @@ void Render::drawScene() {
|
|||
int curMode = _vm->_interface->getMode();
|
||||
assert(_initialized);
|
||||
|
||||
// TODO: Remove this to use dirty rectangles
|
||||
// Still quite buggy
|
||||
_fullRefresh = true;
|
||||
|
||||
#ifdef SAGA_DEBUG
|
||||
_renderedFrameCount++;
|
||||
#endif
|
||||
|
@ -206,7 +202,9 @@ void Render::drawScene() {
|
|||
|
||||
_system->updateScreen();
|
||||
|
||||
_fullRefresh = false;
|
||||
// TODO: Change this to false to use dirty rectangles
|
||||
// Still quite buggy
|
||||
_fullRefresh = true;
|
||||
}
|
||||
|
||||
void Render::addDirtyRect(Common::Rect rect) {
|
||||
|
|
|
@ -89,8 +89,8 @@ Sprite::~Sprite(void) {
|
|||
|
||||
void Sprite::loadList(int resourceId, SpriteList &spriteList) {
|
||||
SpriteInfo *spriteInfo;
|
||||
byte *spriteListData;
|
||||
size_t spriteListLength;
|
||||
byte *spriteListData = 0;
|
||||
size_t spriteListLength = 0;
|
||||
uint16 oldSpriteCount;
|
||||
uint16 newSpriteCount;
|
||||
uint16 spriteCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue