minor changes...
This commit is contained in:
parent
ea11f04336
commit
cd34578e97
1 changed files with 10 additions and 14 deletions
|
@ -86,7 +86,6 @@ impl Editor for Emulator {
|
|||
#[cfg(feature = "vulkan")]
|
||||
shader_path,
|
||||
)
|
||||
.0
|
||||
},
|
||||
);
|
||||
Box::new(Self::new(
|
||||
|
@ -127,7 +126,7 @@ impl EmulatorWindow {
|
|||
manager: Arc<Mutex<Option<Arc<RendererBackendManager>>>>,
|
||||
size: Size,
|
||||
#[cfg(feature = "vulkan")] shader_path: Option<std::path::PathBuf>,
|
||||
) -> (Self, Arc<RendererBackendManager>) {
|
||||
) -> Self {
|
||||
let current_resolution = ResolutionData {
|
||||
real_width: size.width as u32,
|
||||
real_height: size.height as u32,
|
||||
|
@ -154,17 +153,14 @@ impl EmulatorWindow {
|
|||
|
||||
let renderer = RendererBackend::new(current_resolution, window, window_options, m.clone());
|
||||
|
||||
(
|
||||
Self {
|
||||
renderer,
|
||||
manager: m.clone(),
|
||||
emu_comms,
|
||||
joypad_state: Default::default(),
|
||||
latest_buf: Vec::new(),
|
||||
current_resolution,
|
||||
},
|
||||
m.clone(),
|
||||
)
|
||||
Self {
|
||||
renderer,
|
||||
manager: m.clone(),
|
||||
emu_comms,
|
||||
joypad_state: Default::default(),
|
||||
latest_buf: Vec::new(),
|
||||
current_resolution,
|
||||
}
|
||||
}
|
||||
|
||||
fn process_events(&mut self) {
|
||||
|
@ -239,7 +235,7 @@ impl WindowHandler for EmulatorWindow {
|
|||
),
|
||||
) {
|
||||
Ok(_) => {}
|
||||
Err(e) => println!("error sending joypad update: {e:#?}"),
|
||||
Err(e) => nih_error!("error sending joypad update: {e:#?}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue