Skip to content

Commit 1b95116

Browse files
committed
Minor fix, dont throw exception in jawt setvideomode. Remove unused fields from Window
1 parent 2c37a56 commit 1b95116

File tree

2 files changed

+2
-16
lines changed
  • graphics-by-opengl-j2se/src/main/java/com/nucleus/renderer
  • graphics-by-opengl-lwjgl3/src/main/java/com/nucleus/lwjgl3

2 files changed

+2
-16
lines changed

graphics-by-opengl-j2se/src/main/java/com/nucleus/renderer/Window.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.nucleus.J2SEWindow;
44
import com.nucleus.SimpleLogger;
5-
import com.nucleus.resource.ResourceBias.RESOLUTION;
65

76
/**
87
* The size of the renderable area, this is a singleton class since only one instance of GL is supported.
@@ -19,11 +18,6 @@ public class Window {
1918
int height;
2019
J2SEWindow platformWindow;
2120

22-
/**
23-
* Best fit resolution for the display - use this to figure out image scale bias
24-
*/
25-
RESOLUTION resolution;
26-
2721
/**
2822
* Hide instantiation from clients.
2923
*/
@@ -92,13 +86,4 @@ public int getHeight() {
9286
return height;
9387
}
9488

95-
/**
96-
* Returns the resolution of display, use this for image scale bias
97-
*
98-
* @return
99-
*/
100-
public RESOLUTION getResolution() {
101-
return resolution;
102-
}
103-
10489
}

graphics-by-opengl-lwjgl3/src/main/java/com/nucleus/lwjgl3/JAWTWindow.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ public void setWindowTitle(String title) {
183183

184184
@Override
185185
public VideoMode setVideoMode(VideoMode videoMode, int monitorIndex) {
186-
throw new IllegalArgumentException("Not implemented");
186+
// JAWT cannot change to fullscreen.
187+
return videoMode;
187188
}
188189

189190
@Override

0 commit comments

Comments
 (0)