Skip to content

Conversation

@lubert
Copy link

@lubert lubert commented Jan 3, 2026

Summary

  • Adds basic text rendering support to QuickDrawEngine
  • Fixes for some issues with PICT decoding

Fixes

  • Fixed incorrect handling in SetOrigin, was treating dh/dv as absolute positions instead of deltas
  • Changed FillRect/FillOval colors to use foreground/background colors from port state instead of hardcoded values.
  • Changed PICT to draw on transparent so blending works

New opcodes

  • Implemented LongText (0x0028), DHText (0x0029), DVText (0x002A), DHDVText (0x002B)
  • Implemented Line (0x0020), LineFrom (0x0021), ShortLine (0x0022), ShortLineFrom (0x0023)

API Changes

  • Added QuickDrawEngine::set_font_handler() to register callback for font loading

Samples

Reference exports from ResEdit:
pict_128
pict_129

Using QuickDrawEngine:
pict_128_qd
pict_129_qd

@lubert lubert marked this pull request as ready for review January 3, 2026 03:22
@lubert lubert marked this pull request as draft January 3, 2026 04:05
@lubert lubert marked this pull request as ready for review January 3, 2026 04:25
@lubert lubert marked this pull request as draft January 3, 2026 04:41
@lubert lubert marked this pull request as ready for review January 3, 2026 21:43
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