From b0d9d0b87f8884639001d69f3a79d4bb41f019f4 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Sat, 2 Aug 2014 11:23:32 +0200 Subject: Dimensions will now match the monitor's in case of fullscreen --- src/win32/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/win32') diff --git a/src/win32/init.rs b/src/win32/init.rs index 09df5b0..efa27fd 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -59,8 +59,8 @@ pub fn new_window(builder: WindowBuilder) -> Result { // building a RECT object with coordinates let mut rect = ffi::RECT { - left: 0, right: builder.dimensions.val0() as ffi::LONG, - top: 0, bottom: builder.dimensions.val1() as ffi::LONG, + left: 0, right: builder.dimensions.unwrap_or((1024, 768)).val0() as ffi::LONG, + top: 0, bottom: builder.dimensions.unwrap_or((1024, 768)).val1() as ffi::LONG, }; // switching to fullscreen if necessary -- cgit v1.2.3