Skip to content

Wrap SP_MOUSEOUT erase in StartPaint/EndPaint for consistency - #13

Open
ElCruncharino wants to merge 1 commit into
enzo1982:masterfrom
ElCruncharino:fix-hotspot-mouseout-paint-scope
Open

ElCruncharino wants to merge 1 commit into
enzo1982:masterfrom
ElCruncharino:fix-hotspot-mouseout-paint-scope

Conversation

@ElCruncharino

Copy link
Copy Markdown

The other three cases here (SP_MOUSEIN/SP_MOUSEUP/SP_MOUSEDOWN) draw via Frame(), which wraps itself in StartPaint()/EndPaint(). This case draws via Box() directly, which doesn't self wrap and behaves differently depending on timing when called outside an active paint scope (see SurfaceCairo::Box(), direct to window vs. cached). Wrapping this call the same way keeps all four states going through the same rendering path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant