Windows: Display.getVersion should return null when getAdapter() is null

This commit is contained in:
Elias Naur 2006-06-20 14:09:27 +00:00
parent 72c0fc81b8
commit 502291c9cb
1 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,11 @@ final class Win32Display implements DisplayImplementation {
}
public String getVersion() {
return nGetVersion(getAdapter());
String driver = getAdapter();
if (driver != null)
return nGetVersion(driver);
else
return null;
}
private native String nGetVersion(String driver);
public native DisplayMode init() throws LWJGLException;