#13922 closed defect (fixed)

MacCursor not handling black in color cursors

Reported by: sluicebox Owned by: sluicebox
Priority: normal Component: Common
Version: Keywords:
Cc: Game: Quest for Glory 1

Description (last modified by sluicebox)

MacCursor doesn't handle black in color cursors (crsr resources). Black pixels aren't drawn because they're treated as transparent.

This can be seen in the Run cursor in QFG1VGA-Mac. There are three black pixels, two of which are in the leg, and they're not drawn.

The Mac format allows a full 256 palette plus a separate transparency mask but the Cursor model requires one color to to be the transparency key. MacCursor is hard-coded to return 0xff as the transparency key but color 0xff is always defined as black in Mac. There is no code that attempts to deal with this and so incoming 0xff pixels aren't drawn.

Attachments (1)

scummvm-qfg1vga-mac-00000.png (83.6 KB ) - added by sluicebox 19 months ago.

Download all attachments as: .zip

Change History (3)

by sluicebox, 19 months ago

comment:1 by sluicebox, 19 months ago

Description: modified (diff)

comment:2 by sluicebox, 19 months ago

Owner: set to sluicebox
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.