Repository navigation
Add bounded canvas helpers and a resilient Windows 3.0 example - #16
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add optional caller-owned canvas and damage helpers for Windows 3.0 real-mode applications. Callers track the old/current rectangle union, draw into a bounded color or monochrome GDI bitmap, and commit damage only after successful presentation. The helper preserves destination colors and retains handles when cleanup must be retried.
The standalone CANVAS30 example demonstrates animation, expose/resize handling and compact-screen placement. Its single task timer survives window destruction so failed DC/bitmap deletion is retried before quit. Failed background FillRect calls prevent damage commit and trigger full-client repaint, including before an unrelated partial expose.
Validation:
The API uses fixed storage and adds no library timer or display-driver change. Physical hardware, long-duration exhaustion, permanent-failure UX and other native modes remain unqualified. This PR contains source, tests and evidence metadata; no SDK, OS media or guest images. BOR/Mesen resources were untouched.
Publication was authorized. Approval and merge require separate authorization.
Exact-head CI at
61052a723a1ac8ddb243126065e4cf566301c8f5: all five workflows passed—Bounded canvas helper, RAWCLK shared sound ownership, TPLAY exact-head source policy, Large VGM/VGZ foreground playback, and Selectable PSG banks. No approval or merge performed.