mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Mac OS X: Implemented gamma
This commit is contained in:
parent
45607a7c69
commit
cea73a6b85
2 changed files with 17 additions and 4 deletions
|
|
@ -64,6 +64,8 @@ import java.lang.reflect.InvocationHandler;
|
|||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
final class MacOSXDisplay implements DisplayImplementation {
|
||||
private final static int GAMMA_LENGTH = 256;
|
||||
|
||||
private MacOSXFrame frame;
|
||||
private MouseEventQueue mouse_queue;
|
||||
private KeyboardEventQueue keyboard_queue;
|
||||
|
|
@ -103,12 +105,10 @@ final class MacOSXDisplay implements DisplayImplementation {
|
|||
}
|
||||
|
||||
public int getGammaRampLength() {
|
||||
return 0;
|
||||
return GAMMA_LENGTH;
|
||||
}
|
||||
|
||||
public void setGammaRamp(FloatBuffer gammaRamp) throws LWJGLException {
|
||||
throw new LWJGLException("Gamma not supported");
|
||||
}
|
||||
public native void setGammaRamp(FloatBuffer gammaRamp) throws LWJGLException;
|
||||
|
||||
public String getAdapter() {
|
||||
return null;
|
||||
|
|
@ -137,7 +137,10 @@ final class MacOSXDisplay implements DisplayImplementation {
|
|||
if (MacOSXFrame.getDevice().getFullScreenWindow() != null)
|
||||
MacOSXFrame.getDevice().setFullScreenWindow(null);
|
||||
requested_mode = null;
|
||||
restoreGamma();
|
||||
}
|
||||
|
||||
private native void restoreGamma();
|
||||
|
||||
private DisplayMode createLWJGLDisplayMode(java.awt.DisplayMode awt_mode) {
|
||||
int bit_depth;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue