Browse Source

Fixed a maximize problem with some configurations

master
JellySquid 3 years ago
parent
commit
7e442403ee

+ 1
- 1
build.gradle View File

@@ -22,7 +22,7 @@ subprojects {
22 22
     apply plugin: 'maven'
23 23
 
24 24
     group = 'com.skcraft'
25
-    version = '1.0.4.1'
25
+    version = '1.0.4.2'
26 26
 
27 27
     sourceCompatibility = 1.8
28 28
     targetCompatibility = 1.8

+ 2
- 2
launcher-aether/src/main/java/com/gildedgames/launcher/ui/LauncherFrame.java View File

@@ -143,8 +143,8 @@ public class LauncherFrame extends JFrame {
143 143
 		Rectangle bounds = gc.getBounds();
144 144
 		bounds.x += screenInsets.left - RESIZE_BORDER;
145 145
 		bounds.y += screenInsets.top - RESIZE_BORDER;
146
-		bounds.height -= screenInsets.bottom - (RESIZE_BORDER * 2);
147
-		bounds.width -= screenInsets.right - (RESIZE_BORDER * 2);
146
+		bounds.height -= screenInsets.bottom + screenInsets.top - (RESIZE_BORDER * 2);
147
+		bounds.width -= screenInsets.left + screenInsets.right - (RESIZE_BORDER * 2);
148 148
 
149 149
 		this.boundsBeforeMaximize = this.getBounds();
150 150
 

+ 1
- 1
launcher/src/main/resources/com/skcraft/launcher/launcher.properties View File

@@ -4,7 +4,7 @@
4 4
 # Please see LICENSE.txt for license information.
5 5
 #
6 6
 
7
-version=1.0.4.1
7
+version=1.0.4.2
8 8
 agentName=Minecraft
9 9
 offlinePlayerName=Player
10 10
 

Loading…
Cancel
Save