Windows: Move more of Display.getVersion to java

This commit is contained in:
Elias Naur 2006-07-15 19:25:13 +00:00
parent 01f382fa3b
commit 008c59a301
6 changed files with 77 additions and 23 deletions

View file

@ -248,12 +248,13 @@ final class WindowsDisplay implements DisplayImplementation {
public String getVersion() {
String driver = getAdapter();
if (driver != null)
return nGetVersion(driver);
else
if (driver != null) {
WindowsFileVersion version = nGetVersion(driver + ".dll");
return version.toString();
} else
return null;
}
private native String nGetVersion(String driver);
private native WindowsFileVersion nGetVersion(String driver);
public DisplayMode init() throws LWJGLException {
current_gamma = saved_gamma = getCurrentGammaRamp();