Fixed floating point warnings.
This commit is contained in:
parent
374d433e99
commit
89379b6dad
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user