JD557 / minart

A minimal Scala creative coding library targeting JVM/Javascript/Native
MIT License
52 stars 3 forks source link

Fix canvas clear when changing settings #477

Closed JD557 closed 8 months ago

JD557 commented 8 months ago

The unsafeApplySettings implementations were calling clear(Set(Canvas.Buffer.Backbuffer)), which was wrong, as it was obviously clearing the screen with the wrong settings.

This PR changes it to simply fill the new surface based on the new settings.