mirror of https://github.com/adamdruppe/arsd.git
better displayImage from ketmar
This commit is contained in:
parent
971490085d
commit
325de11985
|
@ -4700,7 +4700,7 @@ void displayImage(Image image, SimpleWindow win = null) {
|
||||||
}
|
}
|
||||||
win.eventLoop(0,
|
win.eventLoop(0,
|
||||||
(KeyEvent ev) {
|
(KeyEvent ev) {
|
||||||
win.close();
|
if (ev.pressed) win.close();
|
||||||
} );
|
} );
|
||||||
} else {
|
} else {
|
||||||
win.image = image;
|
win.image = image;
|
||||||
|
|
Loading…
Reference in New Issue