mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Win32: Moved getGammaRampLength to java side
This commit is contained in:
parent
ad1987d748
commit
07da99cd7d
5 changed files with 15 additions and 20 deletions
|
|
@ -47,6 +47,8 @@ import org.lwjgl.LWJGLUtil;
|
|||
import org.lwjgl.input.Cursor;
|
||||
|
||||
final class Win32Display implements DisplayImplementation {
|
||||
private final static int GAMMA_LENGTH = 256;
|
||||
|
||||
private static Win32DisplayPeerInfo peer_info;
|
||||
|
||||
public void createWindow(DisplayMode mode, boolean fullscreen, int x, int y) throws LWJGLException {
|
||||
|
|
@ -57,7 +59,11 @@ final class Win32Display implements DisplayImplementation {
|
|||
public native void destroyWindow();
|
||||
public native void switchDisplayMode(DisplayMode mode) throws LWJGLException;
|
||||
public native void resetDisplayMode();
|
||||
public native int getGammaRampLength();
|
||||
|
||||
public int getGammaRampLength() {
|
||||
return GAMMA_LENGTH;
|
||||
}
|
||||
|
||||
public native void setGammaRamp(FloatBuffer gammaRamp) throws LWJGLException;
|
||||
public String getAdapter() {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue