fix scaling
This commit is contained in:
@@ -36,7 +36,7 @@ use xkbcommon::xkb;
|
|||||||
use crate::{
|
use crate::{
|
||||||
backend::{
|
backend::{
|
||||||
task::{OverlayTask, TaskType},
|
task::{OverlayTask, TaskType},
|
||||||
wayvr::{image_importer::ImageImporter, process::{Process, WayVRProcess}, window::Window},
|
wayvr::{image_importer::ImageImporter, process::{Process}, window::Window},
|
||||||
},
|
},
|
||||||
graphics::WGfxExtras,
|
graphics::WGfxExtras,
|
||||||
ipc::{event_queue::SyncEventQueue, ipc_server, signal::WayVRSignal},
|
ipc::{event_queue::SyncEventQueue, ipc_server, signal::WayVRSignal},
|
||||||
@@ -146,14 +146,12 @@ impl WvrServerState {
|
|||||||
let data_device = DataDeviceState::new::<Application>(&dh);
|
let data_device = DataDeviceState::new::<Application>(&dh);
|
||||||
let mut seat = seat_state.new_wl_seat(&dh, "wayvr");
|
let mut seat = seat_state.new_wl_seat(&dh, "wayvr");
|
||||||
|
|
||||||
let dummy_width = 2560;
|
|
||||||
let dummy_height = 1440;
|
|
||||||
let dummy_milli_hz = 60000; /* refresh rate in millihertz */
|
let dummy_milli_hz = 60000; /* refresh rate in millihertz */
|
||||||
|
|
||||||
let output = Output::new(
|
let output = Output::new(
|
||||||
String::from("wayvr_display"),
|
String::from("wayvr_display"),
|
||||||
smithay::output::PhysicalProperties {
|
smithay::output::PhysicalProperties {
|
||||||
size: (dummy_width, dummy_height).into(),
|
size: (530, 300).into(), //physical size in millimeters
|
||||||
subpixel: smithay::output::Subpixel::None,
|
subpixel: smithay::output::Subpixel::None,
|
||||||
make: String::from("Completely Legit"),
|
make: String::from("Completely Legit"),
|
||||||
model: String::from("Virtual WayVR Display"),
|
model: String::from("Virtual WayVR Display"),
|
||||||
@@ -162,7 +160,7 @@ impl WvrServerState {
|
|||||||
|
|
||||||
let mode = Mode {
|
let mode = Mode {
|
||||||
refresh: dummy_milli_hz,
|
refresh: dummy_milli_hz,
|
||||||
size: (dummy_width, dummy_height).into(),
|
size: (2560, 1440).into(), //logical size in pixels
|
||||||
};
|
};
|
||||||
|
|
||||||
let _global = output.create_global::<Application>(&dh);
|
let _global = output.create_global::<Application>(&dh);
|
||||||
|
|||||||
Reference in New Issue
Block a user