Repository navigation
Draw the Mac OS 9.2.2 document window frame and scroll bars - #78
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.
Draws a document window's frame, grow box and scroll bars as Mac OS 9.2.2 drew them on a 32-bit screen.
ReferenceTests/Retro68/WindowFrameCapture.ccaptures a zoomDocProc window with a close box and two scroll bars, pixel for pixel: two sizes, five states each.PlatinumDocumentFramedraws the frame, title bar and boxes, and the grow box. The title's text is left to the caller, in a break in the stripes.PlatinumScrollBardraws the bar in its active, disabled and inactive looks.Port.paintfills a flat color or a small picture.GraphiteControlsnow depends onGraphite2D.WindowFrameDrawingTestscompares all ten captured pictures pixel for pixel, leaving out the title's text (Charcoal isn't available) and the pixels behind the ends of the shadow.swift testpasses on macOS.Not captured, so unverified: a window without a close or zoom box, pressed boxes and parts, an active bar highlighted 255, a proportional thumb, the width of the break a title gets, and where the thumb goes when its place isn't a whole pixel (rounded down here).