mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03: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:
@ -1722,6 +1722,10 @@ public class Base {
|
|||||||
* Give this Frame a Processing icon.
|
* Give this Frame a Processing icon.
|
||||||
*/
|
*/
|
||||||
static public void setIcon(Frame frame) {
|
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);
|
Image image = Toolkit.getDefaultToolkit().createImage(PApplet.ICON_IMAGE);
|
||||||
frame.setIconImage(image);
|
frame.setIconImage(image);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user