erkyrath / lectrote

The IF interpreter in an Electron shell
Other
248 stars 28 forks source link

Images in graphics window disappear when changing window width #111

Closed angstsmurf closed 5 years ago

angstsmurf commented 5 years ago

Run the GraphWinTest. Type IMAGE. Make the Lectrote window wider or narrower by dragging the edge. The image is gone!

This has to be a bug, right? The image will show again briefly when autorestoring.

EDIT: Oh, this seems to be the intended behaviour. It is just that some other interpreters do not issue graphics-redraw events when resizing. I'll just close this, then.

In 3.5.5 Graphics Windows you write:

You also do not get redraw events when a graphics window is enlarged. If you ordered the enlargement, you already know about it; if the player is responsible, you receive a window-arrangement event, which covers the situation.

But I suppose there is a technical reason why Lectrote has to do it this way.