[Scummvm-cvs-logs] SF.net SVN: scummvm: [22204] scummvm/trunk/engines/lure/surface.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Apr 29 04:14:04 CEST 2006
Revision: 22204
Author: dreammaster
Date: 2006-04-29 04:13:47 -0700 (Sat, 29 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22204&view=rev
Log Message:
-----------
Tweaked dialog display code to refresh the screen and warn about message Ids needing display styles that aren't yet implement
Modified Paths:
--------------
scummvm/trunk/engines/lure/surface.cpp
Modified: scummvm/trunk/engines/lure/surface.cpp
===================================================================
--- scummvm/trunk/engines/lure/surface.cpp 2006-04-29 11:10:49 UTC (rev 22203)
+++ scummvm/trunk/engines/lure/surface.cpp 2006-04-29 11:13:47 UTC (rev 22204)
@@ -388,8 +388,10 @@
void Dialog::show(const char *text) {
Screen &screen = Screen::getReference();
Mouse &mouse = Mouse::getReference();
+ Room &room = Room::getReference();
mouse.cursorOff();
+ room.update();
Surface *s = Surface::newDialog(INFO_DIALOG_WIDTH, text);
s->copyToScreen(INFO_DIALOG_X, INFO_DIALOG_Y);
@@ -435,6 +437,7 @@
if (READ_LE_UINT16(v) == messageId) break;
++v;
}
+
// default response if a specific response not found
if (idVal == 0xffff) idVal = 0x8c4;
@@ -462,8 +465,9 @@
Dialog::show(idVal);
} else if (idVal != 0) {
- /* still to be decoded */
-
+ // Handle message as a talking dialog
+ // TODO: show talk dialog
+ warning("Dialog style for message #%d not yet implemented", idVal);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list