aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2004-09-12 13:53:30 +0000
committerChris Apers2004-09-12 13:53:30 +0000
commit0b4e8fb7fd0753625810f785371130506908994a (patch)
tree20240ffc284c6e3373700b975cb445fa61d28cf2 /backends
parent788c120cf379d45fd7c9365d7b2f5da89be4d71e (diff)
downloadscummvm-rg350-0b4e8fb7fd0753625810f785371130506908994a.tar.gz
scummvm-rg350-0b4e8fb7fd0753625810f785371130506908994a.tar.bz2
scummvm-rg350-0b4e8fb7fd0753625810f785371130506908994a.zip
- Use new form names
- Fixed card redraw svn-id: r15066
Diffstat (limited to 'backends')
-rw-r--r--backends/PalmOS/Src/forms/formmain.cpp32
1 files changed, 22 insertions, 10 deletions
diff --git a/backends/PalmOS/Src/forms/formmain.cpp b/backends/PalmOS/Src/forms/formmain.cpp
index 1adf489985..3dc90b96b3 100644
--- a/backends/PalmOS/Src/forms/formmain.cpp
+++ b/backends/PalmOS/Src/forms/formmain.cpp
@@ -84,18 +84,18 @@ static Boolean MainFormDoCommand(UInt16 command)
handled = true;
break;
- case MainGamesViewMemory:
+ case MainOptionsViewMemory:
FrmPopupForm(SystemInfoForm);
handled = true;
break;
case MainGamesNewEdit:
gFormEditMode = edtModeParams;
- FrmPopupForm(EditGameForm);
+ FrmPopupForm(GameEditForm);
handled = true;
break;
- case MainGamesBeam:
+ case MainOptionsBeam:
BeamMe();
//if (BeamMe())
//FrmCustomAlert(FrmErrorAlert,"Unable to beam ScummVM for PalmOS.",0,0);
@@ -107,7 +107,7 @@ static Boolean MainFormDoCommand(UInt16 command)
handled = true;
break;
- case MainOptionsMusicSound:
+ case MainGamesMusicSound:
FrmPopupForm(MusicForm);
handled = true;
break;
@@ -192,18 +192,30 @@ Boolean MainFormHandleEvent(EventPtr eventP)
switch (eventP->eType) {
case frmUpdateEvent:
- frmP = FrmGetFormPtr(MainForm);
+ {
+ RectangleType r;
+ UInt16 idx;
+ IndexedColorType bgColor = UIColorGetTableEntryIndex(UIFormFill);
+ frmP = FrmGetFormPtr(MainForm);
+
if (gPrefs->card.volRefNum != sysInvalidRefNum)
- FrmShowObject(frmP, FrmGetObjectIndex (frmP, MainMSBitMap));
+ idx = FrmGetObjectIndex (frmP, MainMSBitMap);
else
- FrmShowObject(frmP, FrmGetObjectIndex (frmP, MainMSNoneBitMap));
+ idx = FrmGetObjectIndex (frmP, MainMSNoneBitMap);
+
+ WinSetDrawMode(winPaint);
+ WinSetBackColor(bgColor);
+ FrmGetObjectBounds(frmP, idx, &r);
+ WinEraseRectangle(&r, 0);
+ FrmShowObject(frmP, idx);
+
if (eventP->data.frmUpdate.updateCode == frmRedrawUpdateMSImport) {
GamImportDatabase();
SknUpdateList();
}
handled = true;
break;
-
+ }
case winDisplayChangedEvent:
if (gVars) {
if (gVars->skinSet)
@@ -256,14 +268,14 @@ Boolean MainFormHandleEvent(EventPtr eventP)
switch (sknLastOn) {
case skinButtonGameAdd:
gFormEditMode = edtModeAdd;
- FrmPopupForm(EditGameForm);
+ FrmPopupForm(GameEditForm);
handled = true;
break;
case skinButtonGameEdit:
case skinButtonGameParams:
gFormEditMode = edtModeParams;
- FrmPopupForm(EditGameForm);
+ FrmPopupForm(GameEditForm);
handled = true;
break;