Skip to content

Check if updated rect is valid before trying to redraw it in UpdateImage() method#692

Merged
humdingerb merged 1 commit into
HaikuArchives:masterfrom
HiCamino:691-off-canvas
Jan 7, 2026
Merged

Check if updated rect is valid before trying to redraw it in UpdateImage() method#692
humdingerb merged 1 commit into
HaikuArchives:masterfrom
HiCamino:691-off-canvas

Conversation

@HiCamino
Copy link
Copy Markdown
Contributor

@HiCamino HiCamino commented Jan 7, 2026

seems like and-ing the rect with the bitmap bounds is not enough and can make invalid rects so added an IsValid() check to the bitmap rect.

Fixes #691

…age() method

seems like and-ing the rect with the bitmap bounds is not enough and can make invalid rects
so added an IsValid() check to the bitmap rect.

Fixes HaikuArchives#691
@humdingerb
Copy link
Copy Markdown
Member

Confirmed fixed! Much quicker than I feared... :)

@humdingerb humdingerb merged commit 0049580 into HaikuArchives:master Jan 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Drawing artifact from clicking off canvas

2 participants