mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Windows: Move more of Display.getVersion to java
This commit is contained in:
parent
01f382fa3b
commit
008c59a301
6 changed files with 77 additions and 23 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue