mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-02-04 04:45:32 +00:00
fix(linux): added support for logical screen size with zxdg_output_v1 (#4594)
This commit is contained in:
@ -1542,6 +1542,8 @@ namespace platf {
|
||||
if (monitor_descriptor.index == index && monitor_descriptor.type == type) {
|
||||
monitor_descriptor.viewport.offset_x = monitor->viewport.offset_x;
|
||||
monitor_descriptor.viewport.offset_y = monitor->viewport.offset_y;
|
||||
monitor_descriptor.viewport.width = monitor->viewport.width;
|
||||
monitor_descriptor.viewport.height = monitor->viewport.height;
|
||||
|
||||
// A sanity check, it's guesswork after all.
|
||||
if (
|
||||
|
||||
@ -144,6 +144,8 @@ namespace wl {
|
||||
}
|
||||
|
||||
void monitor_t::xdg_size(zxdg_output_v1 *, std::int32_t width, std::int32_t height) {
|
||||
viewport.width = width;
|
||||
viewport.height = height;
|
||||
BOOST_LOG(info) << "Logical size: "sv << width << 'x' << height;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user