diff options
author | Paweł Kołodziejski | 2003-06-22 15:00:51 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-06-22 15:00:51 +0000 |
commit | 87b5f750e7bf84ea592b19bbfd5ac91d827c8caf (patch) | |
tree | 9684a7e94ae2277ff97406f8ac659bdb3edc60f5 /backends | |
parent | 160c4f910404dcfaad86b5ad238391c75a2d5182 (diff) | |
download | scummvm-rg350-87b5f750e7bf84ea592b19bbfd5ac91d827c8caf.tar.gz scummvm-rg350-87b5f750e7bf84ea592b19bbfd5ac91d827c8caf.tar.bz2 scummvm-rg350-87b5f750e7bf84ea592b19bbfd5ac91d827c8caf.zip |
fixed warnings
svn-id: r8622
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/fb2opengl.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/backends/sdl/fb2opengl.h b/backends/sdl/fb2opengl.h index 124b0a09ea..51bfd47490 100644 --- a/backends/sdl/fb2opengl.h +++ b/backends/sdl/fb2opengl.h @@ -151,14 +151,14 @@ void FB2GL::makeTextures() { void FB2GL::makeDisplayList(int xf, int yf) { - float xfix = xf / 128.0; // 128 = 256/2 (half texture => 0.0 to 1.0) - float yfix = yf / 128.0; + float xfix = xf / 128.0f; // 128 = 256/2 (half texture => 0.0 to 1.0) + float yfix = yf / 128.0f; 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. + texend = 96.0f / 160.0f; // 160=320/2 (== 0.0), 256-160=96. else - texend = 1.0; + texend = 1.0f; if (glIsList(displayList)) glDeleteLists(displayList, 1); @@ -172,13 +172,13 @@ void FB2GL::makeDisplayList(int xf, int yf) { glBegin(GL_QUADS); // upper left - glTexCoord2f(0.0, 1.0); glVertex2f(-1.0, -1.0 - yfix); + glTexCoord2f(0.0f, 1.0f); glVertex2f(-1.0f, -1.0f - yfix); // lower left - glTexCoord2f(0.0, 0.0); glVertex2f(-1.0, 1.0); + glTexCoord2f(0.0f, 0.0f); glVertex2f(-1.0f, 1.0f); // lower right - glTexCoord2f(1.0, 0.0); glVertex2f(texend + xfix, 1.0); + glTexCoord2f(1.0f, 0.0f); glVertex2f(texend + xfix, 1.0f); // upper right - glTexCoord2f(1.0, 1.0); glVertex2f(texend + xfix, -1.0 - yfix); + glTexCoord2f(1.0f, 1.0f); glVertex2f(texend + xfix, -1.0f - yfix); glEnd(); if (flags & FB2GL_NO_320) { @@ -187,13 +187,13 @@ void FB2GL::makeDisplayList(int xf, int yf) { glBegin(GL_QUADS); // upper left - glTexCoord2f(0.0, 1.0); glVertex2f(texend + xfix, -1.0 - yfix); + glTexCoord2f(0.0f, 1.0f); glVertex2f(texend + xfix, -1.0f - yfix); // lower left - glTexCoord2f(0.0, 0.0); glVertex2f(texend + xfix, 1.0); + glTexCoord2f(0.0f, 0.0f); glVertex2f(texend + xfix, 1.0f); // lower right - glTexCoord2f(1.0, 0.0); glVertex2f(1.0 + xfix, 1.0); + glTexCoord2f(1.0f, 0.0f); glVertex2f(1.0f + xfix, 1.0f); // upper right - glTexCoord2f(1.0, 1.0); glVertex2f(1.0 + xfix, -1.0 - yfix); + glTexCoord2f(1.0f, 1.0f); glVertex2f(1.0f + xfix, -1.0f - yfix); glEnd(); } |