WindowInfo: Add surface_scale field

This commit is contained in:
Connor McLaughlin
2020-07-01 00:35:19 +10:00
parent e374853cf5
commit bf08385051
7 changed files with 38 additions and 35 deletions

View File

@ -86,6 +86,7 @@ std::optional<WindowInfo> QtDisplayWidget::getWindowInfo() const
wi.surface_width = scaledWindowWidth();
wi.surface_height = scaledWindowHeight();
wi.surface_scale = devicePixelRatioFromScreen();
wi.surface_format = WindowInfo::SurfaceFormat::RGB8;
return wi;