Silent -Wdouble-promotion warning

Change-Id: I44ba34365818adf6b9af022e4bf4ae9e02c3511a
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Jesus Fernandez 2019-01-24 12:14:07 +01:00 committed by Jesus Fernandez
parent 8ad8a5ddec
commit f4ab0ab624
1 changed files with 2 additions and 2 deletions

View File

@ -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,