Fix 'LOADING...' message broken by a previous cleanup

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3462 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-12-21 23:30:21 +00:00
parent 390ab06714
commit b926c2f8d6
+13 -5
View File
@@ -943,8 +943,12 @@ SaveLoadGame (PICK_GAME_STATE *pickState, COUNT gameIndex)
STAMP saveStamp; STAMP saveStamp;
BOOLEAN success; BOOLEAN success;
saveStamp.frame = NULL;
// TODO: fix ConfirmSaveLoad() interface so it does not rely on
// MsgStamp != NULL parameter.
LockMutex (GraphicsLock); LockMutex (GraphicsLock);
ConfirmSaveLoad (&saveStamp); ConfirmSaveLoad (pickState->saving ? &saveStamp : NULL);
UnlockMutex (GraphicsLock); UnlockMutex (GraphicsLock);
if (pickState->saving) if (pickState->saving)
@@ -952,10 +956,14 @@ SaveLoadGame (PICK_GAME_STATE *pickState, COUNT gameIndex)
else else
success = LoadGame (gameIndex, NULL); success = LoadGame (gameIndex, NULL);
// restore the screen under "Saving..." message // TODO: the same should be done for both save and load if we also
LockMutex (GraphicsLock); // display a load problem message
DrawStamp (&saveStamp); if (pickState->saving)
UnlockMutex (GraphicsLock); { // restore the screen under "SAVING..." message
LockMutex (GraphicsLock);
DrawStamp (&saveStamp);
UnlockMutex (GraphicsLock);
}
DestroyDrawable (ReleaseDrawable (saveStamp.frame)); DestroyDrawable (ReleaseDrawable (saveStamp.frame));