Fixed main window resizing.

This commit is contained in:
Jeddunk 2020-08-28 15:20:55 +02:00
parent dd99292c65
commit d71d8ed789
2 changed files with 11 additions and 6 deletions

View File

@ -384,9 +384,9 @@ public class Controller {
}
/**
* check if creamapi version of dll is there, if not, rename original to steam_api(64)_o.dll and copy
* creamapi dll to the path. also looks for alternative steam dll (which means it patches both 64 and 32 bit
* dlls at once if found)
* Check if CreamAPI version of DLL is there, if not, rename original to steam_api(64)_o.dll and copy
* CreamAPI DLL to the path. Also looks for alternative Steam DLL (which means it patches both 64 and 32 bit
* DLLs at once if found)
*
* @throws IOException If file is missing or not accessible/modifiable.
*/

View File

@ -21,13 +21,18 @@ import javafx.stage.Stage;
public class Main extends Application {
private static final int MIN_WIDTH = 905;
private static final int MIN_HEIGHT = 400;
private static final int PREF_WIDTH = 1200;
private static final int PREF_HEIGHT = 600;
@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(ClassLoader.getSystemResource("mainWindow.fxml"));
primaryStage.setTitle("Auto CreamAPI");
primaryStage.setMinWidth(655 + 25);
primaryStage.setMinHeight(400 + 50);
primaryStage.setScene(new Scene(root, 1200, 600));
primaryStage.setMinWidth(MIN_WIDTH + 25);
primaryStage.setMinHeight(MIN_HEIGHT + 50);
primaryStage.setScene(new Scene(root, PREF_WIDTH, PREF_HEIGHT));
primaryStage.show();
}