[Scummvm-cvs-logs] SF.net SVN: scummvm:[47057] scummvm/trunk/engines/scumm
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Jan 5 23:18:14 CET 2010
Revision: 47057
http://scummvm.svn.sourceforge.net/scummvm/?rev=47057&view=rev
Author: lordhoto
Date: 2010-01-05 22:18:09 +0000 (Tue, 05 Jan 2010)
Log Message:
-----------
Fix broken Scumm dialogs, which is a regression from r46947. (They used a dummy name, which didn't exist in the theme config and later on just calculated the size on their own...)
Modified Paths:
--------------
scummvm/trunk/engines/scumm/dialogs.cpp
scummvm/trunk/engines/scumm/dialogs.h
Modified: scummvm/trunk/engines/scumm/dialogs.cpp
===================================================================
--- scummvm/trunk/engines/scumm/dialogs.cpp 2010-01-05 22:09:16 UTC (rev 47056)
+++ scummvm/trunk/engines/scumm/dialogs.cpp 2010-01-05 22:18:09 UTC (rev 47057)
@@ -207,6 +207,10 @@
#pragma mark -
+ScummDialog::ScummDialog(int x, int y, int w, int h) : GUI::Dialog(x, y, w, h) {
+ _backgroundType = GUI::ThemeEngine::kDialogBackgroundSpecial;
+}
+
ScummDialog::ScummDialog(String name) : GUI::Dialog(name) {
_backgroundType = GUI::ThemeEngine::kDialogBackgroundSpecial;
}
@@ -542,7 +546,7 @@
#pragma mark -
InfoDialog::InfoDialog(ScummEngine *scumm, int res)
-: ScummDialog("scummDummyDialog"), _vm(scumm) { // dummy x and w
+: ScummDialog(0, 0, 0, 0), _vm(scumm) { // dummy x and w
_message = queryResString(res);
@@ -551,7 +555,7 @@
}
InfoDialog::InfoDialog(ScummEngine *scumm, const String& message)
-: ScummDialog("scummDummyDialog"), _vm(scumm) { // dummy x and w
+: ScummDialog(0, 0, 0, 0), _vm(scumm) { // dummy x and w
_message = message;
@@ -652,7 +656,7 @@
ValueDisplayDialog::ValueDisplayDialog(const Common::String& label, int minVal, int maxVal,
int val, uint16 incKey, uint16 decKey)
- : GUI::Dialog("scummDummyDialog"),
+ : GUI::Dialog(0, 0, 0, 0),
_label(label), _min(minVal), _max(maxVal),
_value(val), _incKey(incKey), _decKey(decKey) {
assert(_min <= _value && _value <= _max);
Modified: scummvm/trunk/engines/scumm/dialogs.h
===================================================================
--- scummvm/trunk/engines/scumm/dialogs.h 2010-01-05 22:09:16 UTC (rev 47056)
+++ scummvm/trunk/engines/scumm/dialogs.h 2010-01-05 22:18:09 UTC (rev 47057)
@@ -48,6 +48,7 @@
class ScummDialog : public GUI::Dialog {
public:
+ ScummDialog(int x, int y, int w, int h);
ScummDialog(Common::String name);
protected:
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