Revision: 2857
http://svn.sourceforge.net/java-game-lib/?rev=2857&view=rev
Author: elias_naur
Date: 2007-07-20 14:24:03 -0700 (Fri, 20 Jul 2007)
Log Message:
-----------
Disable MacOSXDisplay.setIcon since there are no window icons on Mac OS X
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java 2007-06-29 22:11:31 UTC (rev 2856)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java 2007-07-20 21:24:03 UTC (rev 2857)
@@ -479,7 +479,7 @@
* @return number of icons used.
*/
public int setIcon(ByteBuffer[] icons) {
- int size = 0;
+/* int size = 0;
int biggest = -1;
for (int i=0;i<icons.length;i++) {
@@ -505,7 +505,9 @@
img.setRGB(0, 0, width, height, imageData, 0, width);
frame.setIconImage(img);
- return 1;
+ return 1;*/
+ // Don't use any icon, since Mac OS X windows don't have window icons
+ return 0;
}
public int getWidth() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|