aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2003-06-22 14:39:55 +0000
committerMax Horn2003-06-22 14:39:55 +0000
commit4604b2600ecc2895e049868d3a6287c2fa0f9093 (patch)
treed7aafdee9da0a9394a3029081daa23f5243badfe /backends
parent2aa0a860384fa653d22b1e5b3a4520117e79b7ce (diff)
downloadscummvm-rg350-4604b2600ecc2895e049868d3a6287c2fa0f9093.tar.gz
scummvm-rg350-4604b2600ecc2895e049868d3a6287c2fa0f9093.tar.bz2
scummvm-rg350-4604b2600ecc2895e049868d3a6287c2fa0f9093.zip
use float instead of double
svn-id: r8617
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/fb2opengl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/backends/sdl/fb2opengl.h b/backends/sdl/fb2opengl.h
index 904bf7baeb..124b0a09ea 100644
--- a/backends/sdl/fb2opengl.h
+++ b/backends/sdl/fb2opengl.h
@@ -151,10 +151,9 @@ void FB2GL::makeTextures() {
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.