VideoBackends: Store a backbuffer 'scale'

This is a scaling factor, used for hi-dpi configurations.
This commit is contained in:
Stenzek
2019-01-19 00:35:00 +10:00
parent e03b8e899e
commit c9c0b85056
15 changed files with 26 additions and 17 deletions

View File

@ -164,6 +164,7 @@ static WindowSystemInfo GetWindowSystemInfo(QWindow* window)
else
wsi.render_surface = window ? reinterpret_cast<void*>(window->winId()) : nullptr;
#endif
wsi.render_surface_scale = window ? static_cast<float>(window->devicePixelRatio()) : 1.0f;
return wsi;
}