diff options
author | Chris Apers | 2004-09-12 13:52:05 +0000 |
---|---|---|
committer | Chris Apers | 2004-09-12 13:52:05 +0000 |
commit | 788c120cf379d45fd7c9365d7b2f5da89be4d71e (patch) | |
tree | f4d828953f42dc534f45900fdf0a78b6cb5f4ade | |
parent | 5ce8b8d74141415d2cff1991375ad5b8c44bd172 (diff) | |
download | scummvm-rg350-788c120cf379d45fd7c9365d7b2f5da89be4d71e.tar.gz scummvm-rg350-788c120cf379d45fd7c9365d7b2f5da89be4d71e.tar.bz2 scummvm-rg350-788c120cf379d45fd7c9365d7b2f5da89be4d71e.zip |
...
svn-id: r15065
-rw-r--r-- | backends/PalmOS/Src/forms/formSkins.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/backends/PalmOS/Src/forms/formSkins.cpp b/backends/PalmOS/Src/forms/formSkins.cpp index 8eae6d7494..2a28e40c49 100644 --- a/backends/PalmOS/Src/forms/formSkins.cpp +++ b/backends/PalmOS/Src/forms/formSkins.cpp @@ -3,7 +3,7 @@ #include "start.h" #include "forms.h" #include "skin.h" - +#include "globals.h" static Int16 SkinsFormCompare(SkinInfoType *a, SkinInfoType *b, SortRecordInfoPtr, SortRecordInfoPtr, MemHandle) { return StrCompare(a->nameP, b->nameP); @@ -121,11 +121,23 @@ static void SkinsFormExit(Boolean bSave) { if (bSave) { ControlType *cck1P; - + StrCopy(gPrefs->skin.nameP, skinsInfo[selected].nameP); gPrefs->skin.cardNo = skinsInfo[selected].cardNo; gPrefs->skin.dbID = skinsInfo[selected].dbID; + +/* DmOpenRef skinDB = SknOpenSkin(); + UInt32 depth = SknGetDepth(skinDB); + SknCloseSkin(skinDB); + if (depth != 8 && depth != 16) depth = 8; + + if (depth == 16 && !OPTIONS_TST(kOptMode16Bit)) { + FrmCustomAlert(FrmInfoAlert, "You can only use 8bit skin on your device.", 0, 0); + gPrefs->skin.cardNo = cardNo; + gPrefs->skin.dbID = dbID; + } +*/ cck1P = (ControlType *)GetObjectPtr(SkinsSoundClickCheckbox); gPrefs->soundClick = CtlGetValue(cck1P); } @@ -251,4 +263,4 @@ Boolean SkinsFormHandleEvent(EventPtr eventP) { } return handled; -}
\ No newline at end of file +} |