From 89379b6dad18535b7d0a5d3fd7743d6b14142723 Mon Sep 17 00:00:00 2001 From: James Turk Date: Tue, 3 Dec 2002 06:34:09 +0000 Subject: [PATCH] Fixed floating point warnings. --- test/ZFontTest.cpp | 2 +- test/ZMouseTest.cpp | 2 +- test/ZMusicTest.cpp | 2 +- test/ZSoundTest.cpp | 2 +- test/ZTimerTest.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/ZFontTest.cpp b/test/ZFontTest.cpp index c3a5c4f..57293d3 100644 --- a/test/ZFontTest.cpp +++ b/test/ZFontTest.cpp @@ -68,7 +68,7 @@ void Test() engine->Clear(); //clear screen //draw the images// for(int i=0; i <= 4; i++) - text[i].Draw(10*i,50*i); + text[i].Draw(10.0f*i,50.0f*i); engine->UpdateScreen(); //update the screen } while(!engine->QuitRequested()); //quit only when engine has encountered a quit request diff --git a/test/ZMouseTest.cpp b/test/ZMouseTest.cpp index 8d1411e..18c0dce 100644 --- a/test/ZMouseTest.cpp +++ b/test/ZMouseTest.cpp @@ -77,7 +77,7 @@ void Test() //draw the images// text[engine->MouseInRect(&textRect)].Draw(100,100); text[2].Draw(0,0); - cursor.Draw(engine->MouseX()-8,engine->MouseY()-8); + cursor.Draw(engine->MouseX()-8.0f,engine->MouseY()-8.0f); engine->UpdateScreen(); //update the screen diff --git a/test/ZMusicTest.cpp b/test/ZMusicTest.cpp index 13af83b..a9a7ff7 100644 --- a/test/ZMusicTest.cpp +++ b/test/ZMusicTest.cpp @@ -92,7 +92,7 @@ void Test() engine->Clear(); //clear screen for(int i=0; i < 4; i++) - text[i].Draw(0,i*50); + text[i].Draw(0,i*50.0f); engine->UpdateScreen(); //update the screen } while(!engine->QuitRequested()); //quit only when engine has encountered a quit request } diff --git a/test/ZSoundTest.cpp b/test/ZSoundTest.cpp index c07984e..7b8b861 100644 --- a/test/ZSoundTest.cpp +++ b/test/ZSoundTest.cpp @@ -91,7 +91,7 @@ void Test() engine->Clear(); //clear screen for(int i=0; i < 6; i++) - text[i].Draw(0,i*50); + text[i].Draw(0,i*50.0f); engine->UpdateScreen(); //update the screen } while(!engine->QuitRequested()); //quit only when engine has encountered a quit request diff --git a/test/ZTimerTest.cpp b/test/ZTimerTest.cpp index 190a5a7..6701d02 100644 --- a/test/ZTimerTest.cpp +++ b/test/ZTimerTest.cpp @@ -107,7 +107,7 @@ void Test() engine->Clear(); //clear screen for(int i=0; i <= 4; i++) - text[i].Draw(0,i*50); + text[i].Draw(0,i*50.0f); engine->UpdateScreen(); //update the screen