1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Don't use the low-res icon on Mac OS X.

http://code.google.com/p/arduino/issues/detail?id=612
This commit is contained in:
David A. Mellis 2011-08-31 15:29:54 -04:00
parent da5ccf4eaf
commit 551b8e85ac

View File

@ -1722,6 +1722,10 @@ public class Base {
* Give this Frame a Processing icon.
*/
static public void setIcon(Frame frame) {
// don't use the low-res icon on Mac OS X; the window should
// already have the right icon from the .app file.
if (Base.isMacOS()) return;
Image image = Toolkit.getDefaultToolkit().createImage(PApplet.ICON_IMAGE);
frame.setIconImage(image);
}