From f4ab0ab62496e63db72592845b285bab3d8388b9 Mon Sep 17 00:00:00 2001 From: Jesus Fernandez Date: Thu, 24 Jan 2019 12:14:07 +0100 Subject: Silent -Wdouble-promotion warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I44ba34365818adf6b9af022e4bf4ae9e02c3511a Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Edward Welbourne --- src/quick/scenegraph/util/qsgatlastexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/quick/scenegraph') diff --git a/src/quick/scenegraph/util/qsgatlastexture.cpp b/src/quick/scenegraph/util/qsgatlastexture.cpp index 66c6d3a882..921ed0c1fc 100644 --- a/src/quick/scenegraph/util/qsgatlastexture.cpp +++ b/src/quick/scenegraph/util/qsgatlastexture.cpp @@ -517,8 +517,8 @@ Texture::Texture(Atlas *atlas, const QRect &textureRect, const QImage &image) , m_nonatlas_texture(nullptr) , m_has_alpha(image.hasAlphaChannel()) { - float w = atlas->size().width(); - float h = atlas->size().height(); + qreal w = atlas->size().width(); + qreal h = atlas->size().height(); QRect nopad = atlasSubRectWithoutPadding(); m_texture_coords_rect = QRectF(nopad.x() / w, nopad.y() / h, -- cgit v1.2.3