[Scummvm-cvs-logs] CVS: web compatibility.php,1.58,1.59

Max Horn fingolfin at users.sourceforge.net
Sun Nov 10 04:55:01 CET 2002


Update of /cvsroot/scummvm/web
In directory usw-pr-cvs1:/tmp/cvs-serv7449

Modified Files:
	compatibility.php 
Log Message:
round percentages that are not divisible by 5 down to the next multiple of 5 for the purpose of coloring

Index: compatibility.php
===================================================================
RCS file: /cvsroot/scummvm/web/compatibility.php,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- compatibility.php	10 Nov 2002 11:56:35 -0000	1.58
+++ compatibility.php	10 Nov 2002 12:53:59 -0000	1.59
@@ -174,7 +174,7 @@
 				html_frame_td($name).
 			  	html_frame_td($array[0]).
 			    	html_frame_td($array[1]).
-		 	    	html_frame_td($array[2]."%", 'align="center" class="pct'.$array[2].'"'),
+		 	    	html_frame_td($array[2]."%", 'align="center" class="pct'.($array[2] - ($array[2]%5)).'"'),
 		  	        $color
 	  		);
 			echo html_frame_tr(html_frame_td(
@@ -193,7 +193,7 @@
 				    html_frame_td(html_ahref($name, $PHP_SELF."?details=".$array[1])).
      				    html_frame_td($array[0]).
 				    html_frame_td($array[1]).
-			 	    html_frame_td($array[2]."%", 'align="center" class="pct'.$array[2].'"'),
+			 	    html_frame_td($array[2]."%", 'align="center" class="pct'.($array[2] - ($array[2]%5)).'"'),
  			  	    $color
 		);
 		$c++;





More information about the Scummvm-git-logs mailing list