Fixed floating point warnings.

This commit is contained in:
James Turk 2002-12-03 06:34:09 +00:00
parent 374d433e99
commit 89379b6dad
5 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ void Test()
engine->Clear(); //clear screen engine->Clear(); //clear screen
//draw the images// //draw the images//
for(int i=0; i <= 4; i++) 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 engine->UpdateScreen(); //update the screen
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request } while(!engine->QuitRequested()); //quit only when engine has encountered a quit request

View File

@ -77,7 +77,7 @@ void Test()
//draw the images// //draw the images//
text[engine->MouseInRect(&textRect)].Draw(100,100); text[engine->MouseInRect(&textRect)].Draw(100,100);
text[2].Draw(0,0); 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 engine->UpdateScreen(); //update the screen

View File

@ -92,7 +92,7 @@ void Test()
engine->Clear(); //clear screen engine->Clear(); //clear screen
for(int i=0; i < 4; i++) 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 engine->UpdateScreen(); //update the screen
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request } while(!engine->QuitRequested()); //quit only when engine has encountered a quit request
} }

View File

@ -91,7 +91,7 @@ void Test()
engine->Clear(); //clear screen engine->Clear(); //clear screen
for(int i=0; i < 6; i++) 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 engine->UpdateScreen(); //update the screen
} while(!engine->QuitRequested()); //quit only when engine has encountered a quit request } while(!engine->QuitRequested()); //quit only when engine has encountered a quit request

View File

@ -107,7 +107,7 @@ void Test()
engine->Clear(); //clear screen engine->Clear(); //clear screen
for(int i=0; i <= 4; i++) 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 engine->UpdateScreen(); //update the screen