mirror of
https://github.com/Fluffy-Bean/ColouringApp.git
synced 2025-05-19 01:44:55 +00:00
Support resizing canvas though not used really
This commit is contained in:
parent
00c449abff
commit
9cfdd651b7
2 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue