Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29189/src/java/org/lwjgl/opengl
Modified Files:
Win32Display.java
Log Message:
Updated Win32 native interface to use IntBuffers rather than ByteBuffers
Index: Win32Display.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Win32Display.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- Win32Display.java 5 Jul 2005 21:54:12 -0000 1.19
+++ Win32Display.java 5 Jul 2005 22:09:44 -0000 1.20
@@ -179,12 +179,12 @@
int size = icons[i].limit();
if ((((int) Math.sqrt(size)) == 16) && (!done16)) {
- nSetWindowIcon16(icons[i]);
+ nSetWindowIcon16(icons[i].asIntBuffer());
used++;
done16 = true;
}
if ((((int) Math.sqrt(size)) == 32) && (!done32)) {
- nSetWindowIcon32(icons[i]);
+ nSetWindowIcon32(icons[i].asIntBuffer());
used++;
done32 = true;
}
@@ -193,7 +193,7 @@
return used;
}
- private static native int nSetWindowIcon16(ByteBuffer icon);
+ private static native int nSetWindowIcon16(IntBuffer icon);
- private static native int nSetWindowIcon32(ByteBuffer icon);
+ private static native int nSetWindowIcon32(IntBuffer icon);
}
|