Commit Graph
2 Commits
Author SHA1 Message Date
sluicebox f1d4ff6559 SCI: Fix boundary checks when drawing font chars
Adds boundary checks to handle characters with pixels that
are to the left or above the screen. This occurs in the fan
game Soulshade Asylum which draws a large window whose title
is above the screen and not meant to be seen. The window code
clips the rectangles but the text was drawn outside the buffer.

Fixes the existing boundary checks so that the correct pixels
are drawn when there's overlap with the right edge of the screen.
2020-09-29 18:39:08 -07:00
Walter van Niftrik 22593de73f SCI: Rename font.h/cpp to scifont.h/cpp
This avoids an issue with MSVC where if (non-SCI) "graphics/font.h" is
included through another include file from the SCI engine root, it finds
"sci/graphics/font.h" first and uses that instead.
2020-08-27 14:56:17 +02:00