Fixed warning

Former-commit-id: 8e4c53e92dc2e5d240aebcb58d817a2a183cb675
This commit is contained in:
Lynix 2013-06-09 16:15:57 +02:00
parent e689f6f09f
commit 3df00608b5
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ void NzTextureBackground::Draw(const NzScene* scene) const
NzRectui viewport = NzRenderer::GetViewport();
// Sous forme de flottants pour la division flottante
float width = target->GetWidth();
float height = target->GetHeight();
float width = static_cast<float>(target->GetWidth());
float height = static_cast<float>(target->GetHeight());
NzVector2f uv0(viewport.x/width, viewport.y/height);
NzVector2f uv1((viewport.x+viewport.width)/width, (viewport.y+viewport.height)/height);