SAM: Hack to fix bug #737387
|Sam and Max
This patch fixes bug #737387 ("SAM: Part of text (subtitles) disappears when moving mouse"), albeit in a slightly hacky way.
The problem is that our useIm01Cursor() works by drawing the cursor image to the upper left corner, from which it then copies it into _grabbedCursor before finally restoring the screen. It's the last step that doesn't quite work. I think it simply redraws the original background, and that does not include the text that was drawn there.
This patch fixes that by copying the screen are to a temporary buffer and restore it from there instead. A nicer solution would probably be if useIm01Cursor() could render the image directly into _grabbedCursor instead, like useBompCursor() does, but I'm not familiar enough with the code.
There is a possibly related glitch with The Dig, where it draws a cursor image in the upper left corner without erasing it afterwards. Unfortunately this patch does nothing whatsoever to fix that.
Ticket imported from: #738100. Ticket imported from: patches/328.