diff options
author | Sven Gothel <[email protected]> | 2012-10-19 17:13:14 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-19 17:13:14 +0200 |
commit | 0d353c8bec9cc0c9f3dc6326177f3022c920f677 (patch) | |
tree | 984e3e4bf884142edfd0c3a2b27cf9b66029bcf2 /src/jake2/render/DummyRenderer.java | |
parent | 7b18dfedf6c04f77a6032539f8b70d434375d139 (diff) |
Fix/Enhance NEWT ScreenMode (FS) integration, simplify NEWTWin creation
- Only list unique resolutions
- Use List<ScreenMode>
- Properly deactivateGLContext()/activateGLContext() for setMode(..)
Further:
- JoglES2Driver: Claim to have pointExt (FFP emul will follow up)
Diffstat (limited to 'src/jake2/render/DummyRenderer.java')
-rw-r--r-- | src/jake2/render/DummyRenderer.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jake2/render/DummyRenderer.java b/src/jake2/render/DummyRenderer.java index 73d05a6..2bc2c2e 100644 --- a/src/jake2/render/DummyRenderer.java +++ b/src/jake2/render/DummyRenderer.java @@ -7,6 +7,9 @@ package jake2.render; +import java.util.ArrayList; +import java.util.List; + import javax.media.nativewindow.util.Dimension; import com.jogamp.newt.ScreenMode; @@ -170,8 +173,8 @@ public class DummyRenderer implements refexport_t { /* (non-Javadoc) * @see jake2.client.refexport_t#getModeList() */ - public ScreenMode[] getModeList() { - return null; + public List<ScreenMode> getModeList() { + return new ArrayList<ScreenMode>(); } /* (non-Javadoc) |