Repository navigation
Add CopyBits and CopyMask to libQuickDraw - #70
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.
Adds
CopyBitsandCopyMaskbetween black and white bitmaps to libQuickDraw (112 of 305 now implemented), measured first against Mac OS 9.2.2 withCopyBitsCapture.c.A destination with the current port's pixels is clipped by its regions and left alone with the pen hidden; another bitmap is limited only by its bounds and the mask region.
Engine changes (
Graphite2D)These affect Swift callers and picture playback too:
visRgnandclipRgn.libQuickDraw behavior change
In its black and white ports, every
ForeColorandBackColorother than white now draws black, as Mac OS did. Yellow, for one, used to draw white.Still different
64 of the 66 captured lines match. The other two copy from a source rectangle reaching outside its bitmap, where Mac OS copied the memory there; Graphite doesn't read it and leaves the destination. The test lists both.
Not measured
Testing
swift testpasses (798 tests). The CMake build installs, exports the 305 functions the headers declare, and both C conformance programs pass.