fix some conversion warnings
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user