diff --git a/test/src/emulator.rs b/test/src/emulator.rs index bdb2415c..20c52f59 100644 --- a/test/src/emulator.rs +++ b/test/src/emulator.rs @@ -273,6 +273,11 @@ impl Emulator

{ runtime::Action::Reload => { // TODO } + runtime::Action::Dnd(_) + | runtime::Action::PlatformSpecific(_) => { + // Drag and drop and platform surfaces need a + // windowing system, which an emulator has none of. + } }, } } @@ -474,7 +479,9 @@ impl Emulator

{ &mut self.renderer, theme, &renderer::Style { + icon_color: style.text_color, text_color: style.text_color, + scale_factor: f64::from(scale_factor), }, mouse::Cursor::Unavailable, ); diff --git a/test/src/simulator.rs b/test/src/simulator.rs index 63fbe3f7..20972088 100644 --- a/test/src/simulator.rs +++ b/test/src/simulator.rs @@ -209,17 +209,19 @@ where &mut self.messages, ); + let scale_factor = 2.0_f32; + self.raw.draw( &mut self.renderer, theme, &core::renderer::Style { + icon_color: base.text_color, text_color: base.text_color, + scale_factor: f64::from(scale_factor), }, self.cursor, ); - let scale_factor = 2.0; - let physical_size = Size::new( (self.size.width * scale_factor).round() as u32, (self.size.height * scale_factor).round() as u32,