Skip to content

Draw the Mac OS 9.2.2 document window frame and scroll bars - #78

Merged
colemancda merged 10 commits into
masterfrom
feature/window-drawing
Dec 3, 2026
Merged

colemancda merged 10 commits into
masterfrom
feature/window-drawing

Conversation

@colemancda

Copy link
Copy Markdown
Member

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.c captures a zoomDocProc window with a close box and two scroll bars, pixel for pixel: two sizes, five states each.
  • PlatinumDocumentFrame draws 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.
  • PlatinumScrollBar draws the bar in its active, disabled and inactive looks.
  • Port.paint fills a flat color or a small picture.
  • GraphiteControls now depends on Graphite2D.

WindowFrameDrawingTests compares 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 test passes 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).

@colemancda
colemancda merged commit e8f5548 into master Dec 3, 2026
5 of 6 checks passed
@colemancda
colemancda deleted the feature/window-drawing branch December 3, 2026 14:49
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