WindowInfo: Add surface_scale field

This commit is contained in:
Connor McLaughlin committed 2020-07-01 01:57:25 +10:00
1 parent e374853cf5
commit bf08385051
7 files changed
+38 -35

No files matched your search

+1
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;