mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
HOPKINS: Add lockScreen() and unlockScreen() in copyVideoVbe16()
This commit is contained in:
@@ -137,10 +137,8 @@ void AnimationManager::playAnim(const Common::String &filename, uint32 rate1, ui
|
||||
|
||||
if (!_vm->_events->_escKeyFl) {
|
||||
_vm->_events->_rateCounter = 0;
|
||||
_vm->_graphicsMan->lockScreen();
|
||||
if (*screenP != kByteStop)
|
||||
_vm->_graphicsMan->copyVideoVbe16(screenP);
|
||||
_vm->_graphicsMan->unlockScreen();
|
||||
|
||||
_vm->_graphicsMan->addRefreshRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
_vm->_graphicsMan->updateScreen();
|
||||
@@ -282,11 +280,8 @@ void AnimationManager::playAnim2(const Common::String &filename, uint32 rate1, u
|
||||
}
|
||||
|
||||
_vm->_events->_rateCounter = 0;
|
||||
_vm->_graphicsMan->lockScreen();
|
||||
if (*screenP != kByteStop) {
|
||||
if (*screenP != kByteStop)
|
||||
_vm->_graphicsMan->copyVideoVbe16(screenP);
|
||||
}
|
||||
_vm->_graphicsMan->unlockScreen();
|
||||
|
||||
_vm->_graphicsMan->addRefreshRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
_vm->_graphicsMan->updateScreen();
|
||||
|
||||
@@ -725,6 +725,8 @@ void GraphicsManager::copyWinscanVbe3(const byte *srcData, byte *destSurface) {
|
||||
void GraphicsManager::copyVideoVbe16(const byte *srcData) {
|
||||
const byte *srcP = srcData;
|
||||
int destOffset = 0;
|
||||
|
||||
lockScreen();
|
||||
assert(_videoPtr);
|
||||
|
||||
for (;;) {
|
||||
@@ -791,6 +793,7 @@ void GraphicsManager::copyVideoVbe16(const byte *srcData) {
|
||||
++destOffset;
|
||||
}
|
||||
}
|
||||
unlockScreen();
|
||||
}
|
||||
|
||||
void GraphicsManager::copyVideoVbe16a(const byte *srcData) {
|
||||
|
||||
Reference in New Issue
Block a user