Skip to content

Commit

Permalink
Wayland: Fix window creation dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
francesca64 committed Jun 22, 2018
1 parent 047c67b commit 45e0edf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/platform/linux/wayland/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ pub struct Window {

impl Window {
pub fn new(evlp: &EventsLoop, attributes: WindowAttributes) -> Result<Window, CreationError> {
// TODO: Update for new DPI API
//let (width, height) = attributes.dimensions.unwrap_or((800, 600));
let (width, height) = (64, 64);
let (width, height) = attributes.dimensions.map(Into::into).unwrap_or((800, 600));
// Create the window
let size = Arc::new(Mutex::new((width, height)));

Expand Down

0 comments on commit 45e0edf

Please sign in to comment.