Fixed warning
Former-commit-id: 8e4c53e92dc2e5d240aebcb58d817a2a183cb675
This commit is contained in:
parent
e689f6f09f
commit
3df00608b5
|
|
@ -20,8 +20,8 @@ void NzTextureBackground::Draw(const NzScene* scene) const
|
||||||
NzRectui viewport = NzRenderer::GetViewport();
|
NzRectui viewport = NzRenderer::GetViewport();
|
||||||
|
|
||||||
// Sous forme de flottants pour la division flottante
|
// Sous forme de flottants pour la division flottante
|
||||||
float width = target->GetWidth();
|
float width = static_cast<float>(target->GetWidth());
|
||||||
float height = target->GetHeight();
|
float height = static_cast<float>(target->GetHeight());
|
||||||
|
|
||||||
NzVector2f uv0(viewport.x/width, viewport.y/height);
|
NzVector2f uv0(viewport.x/width, viewport.y/height);
|
||||||
NzVector2f uv1((viewport.x+viewport.width)/width, (viewport.y+viewport.height)/height);
|
NzVector2f uv1((viewport.x+viewport.width)/width, (viewport.y+viewport.height)/height);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue