fix some conversion warnings
This commit is contained in:
parent
3381a05f7c
commit
8e54e7cf1a
5 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue