Support resizing canvas though not used really

This commit is contained in:
Michał Gdula 2024-01-25 20:48:38 +00:00
parent 00c449abff
commit 9cfdd651b7
2 changed files with 4 additions and 1 deletions

View file

@ -20,6 +20,8 @@ type Canvas struct {
func (c *Canvas) Update() {
if c.Refresh {
c.Target = raylib.LoadRenderTexture(int32(c.Size.X), int32(c.Size.Y))
raylib.BeginTextureMode(c.Target)
raylib.ClearBackground(raylib.White)
for _, mark := range c.Strokes {