fix some conversion warnings

This commit is contained in:
Vitor Kiguchi 2020-07-24 16:33:09 -03:00
parent 3381a05f7c
commit 8e54e7cf1a
5 changed files with 7 additions and 7 deletions

View file

@ -230,8 +230,8 @@ void GRenderWindow::OnFramebufferSizeChanged() {
// Screen changes potentially incur a change in screen DPI, hence we should update the
// framebuffer size
const qreal pixel_ratio = windowPixelRatio();
const u32 width = this->width() * pixel_ratio;
const u32 height = this->height() * pixel_ratio;
const u32 width = static_cast<u32>(this->width() * pixel_ratio);
const u32 height = static_cast<u32>(this->height() * pixel_ratio);
UpdateCurrentFramebufferLayout(width, height);
}