Просмотр исходного кода

device: windows: resize window upon creation

Daniele Bartolini 6 лет назад
Родитель
Сommit
b575f22e30
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      src/device/main_windows.cpp

+ 2 - 4
src/device/main_windows.cpp

@@ -576,10 +576,8 @@ struct WindowWin : public Window
 
 	void open(u16 x, u16 y, u16 width, u16 height, u32 /*parent*/)
 	{
-		_x = x;
-		_y = y;
-		_width = width;
-		_height = height;
+		move(x, y);
+		resize(width, height);
 	}
 
 	void close()