Remove hardcoded HiDPI scaling

This commit is contained in:
Héctor Ramón Jiménez 2019-11-06 02:47:01 +01:00
parent 1e021fd034
commit 2026048053
2 changed files with 3 additions and 2 deletions

View file

@ -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))

View file

@ -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 {