Win32: Moved getGammaRampLength to java side

This commit is contained in:
Elias Naur 2005-12-27 13:47:25 +00:00
parent ad1987d748
commit 07da99cd7d
5 changed files with 15 additions and 20 deletions

View file

@ -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 {