[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src/forms formmain.cpp,1.3,1.4
Chris Apers
chrilith at users.sourceforge.net
Sun Sep 12 06:54:11 CEST 2004
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src/forms
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12715
Modified Files:
formmain.cpp
Log Message:
- Use new form names
- Fixed card redraw
Index: formmain.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/forms/formmain.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- formmain.cpp 25 May 2004 13:56:11 -0000 1.3
+++ formmain.cpp 12 Sep 2004 13:53:30 -0000 1.4
@@ -84,18 +84,18 @@
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 @@
handled = true;
break;
- case MainOptionsMusicSound:
+ case MainGamesMusicSound:
FrmPopupForm(MusicForm);
handled = true;
break;
@@ -192,18 +192,30 @@
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 @@
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;
More information about the Scummvm-git-logs
mailing list