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:
parent
da5ccf4eaf
commit
551b8e85ac
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user