From 3df00608b5f9335f797e06244e08810cd8ffae1d Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 9 Jun 2013 16:15:57 +0200 Subject: [PATCH] Fixed warning Former-commit-id: 8e4c53e92dc2e5d240aebcb58d817a2a183cb675 --- src/Nazara/Graphics/TextureBackground.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nazara/Graphics/TextureBackground.cpp b/src/Nazara/Graphics/TextureBackground.cpp index a5fd2dc5d..67a851ec3 100644 --- a/src/Nazara/Graphics/TextureBackground.cpp +++ b/src/Nazara/Graphics/TextureBackground.cpp @@ -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(target->GetWidth()); + float height = static_cast(target->GetHeight()); NzVector2f uv0(viewport.x/width, viewport.y/height); NzVector2f uv1((viewport.x+viewport.width)/width, (viewport.y+viewport.height)/height);