Commit 7fa3d11
committed
feat: QuickDraw color-aware pattern fills and text, CopyBits safety
QuickDraw color improvements:
- FillRect: use QDPlatform_SelectPatternColor() to respect port
foreground/background colors instead of hardcoded black/white
- FillOval: same fix - patterns now render in port colors
- Text rendering: derive glyph foreground color from port->fgColor
instead of pattern byte intensity (enables colored text)
Security/safety:
- CopyBits: validate source/destination offsets are non-negative before
casting to UInt32 to prevent unsigned wraparound on misaligned bitmaps
- EventDispatcher inContent: add NULL check on whichWindow before
dereference (race condition protection)
Cleanup:
- Remove 7 debug serial_puts/MemoryManager_CheckSuspectBlock calls from
DragWindow hot path in EventDispatcher1 parent 2f37f89 commit 7fa3d11
File tree
3 files changed
+19
-30
lines changed- src
- EventManager
- QuickDraw
3 files changed
+19
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | 349 | | |
355 | | - | |
356 | | - | |
357 | 350 | | |
358 | 351 | | |
359 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
645 | 651 | | |
646 | | - | |
| 652 | + | |
647 | 653 | | |
648 | | - | |
| 654 | + | |
649 | 655 | | |
650 | 656 | | |
651 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
| 501 | + | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
| 505 | + | |
| 506 | + | |
513 | 507 | | |
514 | 508 | | |
515 | 509 | | |
| |||
579 | 573 | | |
580 | 574 | | |
581 | 575 | | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 576 | + | |
587 | 577 | | |
588 | 578 | | |
589 | 579 | | |
| |||
1324 | 1314 | | |
1325 | 1315 | | |
1326 | 1316 | | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1333 | 1323 | | |
1334 | 1324 | | |
1335 | 1325 | | |
| |||
0 commit comments