[Scummvm-cvs-logs] CVS: scummvm/backends/sdl fb2opengl.h,1.15,1.16

Max Horn fingolfin at users.sourceforge.net
Sun Jun 22 07:40:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv10987

Modified Files:
	fb2opengl.h 
Log Message:
use float instead of double

Index: fb2opengl.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/fb2opengl.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- fb2opengl.h	20 Jun 2003 23:21:06 -0000	1.15
+++ fb2opengl.h	22 Jun 2003 14:39:55 -0000	1.16
@@ -151,10 +151,9 @@
 
 
 void FB2GL::makeDisplayList(int xf, int yf) {
-	double xfix = (double)xf / 128; // 128 = 256/2 (half texture => 0.0 to 1.0)
-	double yfix = (double)yf / 128;
-	// End of 256x256 (from -1.0 to 1.0)
-	double texend;
+	float xfix = xf / 128.0; // 128 = 256/2 (half texture => 0.0 to 1.0)
+	float yfix = yf / 128.0;
+	float texend;	// End of 256x256 (from -1.0 to 1.0)
 
 	if (flags & FB2GL_NO_320)
 		texend = 96.0 / 160.0; // 160=320/2 (== 0.0), 256-160=96.





More information about the Scummvm-git-logs mailing list