Explorar el Código

device: windows: resize window upon creation

Daniele Bartolini hace 6 años
padre
commit
b575f22e30
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  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()