[Scummvm-cvs-logs] SF.net SVN: scummvm: [28691] scummvm/trunk/engines/saga/interface.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Aug 21 20:23:49 CEST 2007


Revision: 28691
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28691&view=rev
Author:   thebluegr
Date:     2007-08-21 11:23:48 -0700 (Tue, 21 Aug 2007)

Log Message:
-----------
The height of the save file list slider is calculated correctly now for IHNM

Modified Paths:
--------------
    scummvm/trunk/engines/saga/interface.cpp

Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp	2007-08-21 18:07:17 UTC (rev 28690)
+++ scummvm/trunk/engines/saga/interface.cpp	2007-08-21 18:23:48 UTC (rev 28691)
@@ -837,14 +837,19 @@
 	int totalFiles = _vm->getSaveFilesCount();
 	int visibleFiles = _vm->getDisplayInfo().optionSaveFileVisible;
 	int height = _optionSaveFileSlider->height;
-	int sliderHeight;
+	int sliderHeight = 13;		// IHNM's save file list slider has a fixed height
 	int pos;
 
 	if (totalFiles < visibleFiles) {
 		totalFiles = visibleFiles;
 	}
 
-	sliderHeight = visibleFiles * height / totalFiles;
+	if (_vm->getGameType() == GType_ITE) {
+		// ITE's save file list slider has a dynamically computed height, depending on
+		// the number of save games
+		sliderHeight = visibleFiles * height / totalFiles;
+	}
+
 	if (sliderHeight < 7) {
 		sliderHeight = 7;
 	}


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