Fix display and input in dimp

svn-id: r24068
This commit is contained in:
Travis Howell 2006-10-02 11:31:11 +00:00
parent 62df08578b
commit 6201707122
2 changed files with 4 additions and 3 deletions

View File

@ -272,7 +272,7 @@ static const byte _mouseOffs[29 * 32] = {
void AGOSEngine::handleMouseMoved() {
uint x;
if (_mouseHideCount) {
if (getGameId() != GID_DIMP && _mouseHideCount) {
CursorMan.showMouse(false);
return;
}
@ -414,7 +414,7 @@ void AGOSEngine::loadMouseImage() {
}
void AGOSEngine::drawMousePointer() {
if (getGameType() == GType_PP) {
if (getGameType() == GType_PP && getGameId() != GID_DIMP) {
CursorMan.replaceCursor(_mouseData, _maxCursorWidth, _maxCursorHeight, 37, 48, 0);
} else if (getGameType() == GType_SIMON2) {
CursorMan.replaceCursor(_simon2_cursors[_mouseCursor], 16, 16, 7, 7);

View File

@ -452,7 +452,8 @@ void AGOSEngine::dx_update_screen_and_palette() {
_system->copyRectToScreen(_backBuf, _screenWidth, 0, 0, _screenWidth, _screenHeight);
_system->updateScreen();
memcpy(_backBuf, _frontBuf, _screenWidth * _screenHeight);
if (getGameId() != GID_DIMP)
memcpy(_backBuf, _frontBuf, _screenWidth * _screenHeight);
if (getGameType() == GType_FF && _scrollFlag) {
scrollScreen();