فهرست منبع

device: set old_{width,height} to last known width and height

Daniele Bartolini 7 سال پیش
والد
کامیت
cd935866c1
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/device/device.cpp

+ 2 - 2
src/device/device.cpp

@@ -432,8 +432,8 @@ void Device::run()
 	_lua_environment->call_global("init", 0);
 
 	s64 time_last = os::clocktime();
-	u16 old_width = 0;
-	u16 old_height = 0;
+	u16 old_width = _width;
+	u16 old_height = _height;
 
 	while (!process_events(_boot_config.vsync) && !_quit)
 	{