Remove hardcoded HiDPI scaling
This commit is contained in:
parent
1e021fd034
commit
2026048053
2 changed files with 3 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ impl Application for Tour {
|
|||
}
|
||||
|
||||
let element: Element<_> = Column::new()
|
||||
.max_width(Length::Units((540.0*3.0) as u16))
|
||||
.max_width(Length::Units(540))
|
||||
.spacing(20)
|
||||
.padding(20)
|
||||
.push(steps.view(self.debug).map(Message::StepMessage))
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ use wgpu_glyph::{GlyphCruncher, Section};
|
|||
use std::cell::RefCell;
|
||||
use std::f32;
|
||||
|
||||
pub const DEFAULT_TEXT_SIZE : f32 = 20.0*3.0;
|
||||
// TODO: Obtain from renderer configuration
|
||||
const DEFAULT_TEXT_SIZE: f32 = 20.0;
|
||||
|
||||
impl text::Renderer for Renderer {
|
||||
fn node(&self, text: &Text) -> Node {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue