25 Commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Torbjörn Andersson
9e5d0c7700 SHERLOCK: Calculate font height/width more accurately
Each character in a font can have an X and Y offset. This was not
considered when calculating the width and height of the font. One way
this could be noticed was in Serrated Scalpel, when talking to a
character with a lot of conversation options. Scrolling down would
highlight the "Up" button. Selecting a conversation option would then
dim the button, but the bottommost pixel of the "p" was still
highlighted.

Hopefully this does not negatively affect anything else.
2021-12-18 19:06:26 -08:00
Paul Gilbert
baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
Eugene Sandulenko
dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Paul Gilbert
4a88f39cc9 SHERLOCK: Refactor Surface and Screen to not use virtual inheritance 2016-05-26 21:48:40 -04:00
Paul Gilbert
3da3dda187 SHERLOCK: Changed engine to use Graphics::ManagedSurface 2016-03-14 20:56:27 -04:00
Torbjörn Andersson
d9b4f02d79 SHERLOCK: Silence GCC signed/unsigned warning 2016-02-01 23:20:20 +01:00
Paul Gilbert
73242aa5bc SHERLOCK: SS: Fix incorrect conversation lines display in German version 2016-01-31 18:10:58 -05:00
Martin Kiewitz
5642370948 SHERLOCK: SS: don't setup font for non-play demo
Do not setup font for non-playable demo
Non-playable demo does not have any font at all
Fixes non-playable demo not working
2016-01-30 21:07:16 +01:00
Martin Kiewitz
081fe30ce0 SHERLOCK: SS: fix comment typo 2015-10-05 23:55:58 +02:00
Martin Kiewitz
2aaf178dfc SHERLOCK: SS: Spanish inv. exclam. mark support
Support for spanish inverted exclamation mark
Was skipped over in the original interpreter and also wasn't
even included in the spanish font
We create the character by ourselves and map it accordingly
2015-10-05 23:53:46 +02:00
Paul Gilbert
e73a50c6c5 SHERLOCK: SS: Fix invalid characters when displaying journal 2015-10-04 20:56:13 -04:00
Martin Kiewitz
d6347269eb SHERLOCK: RT: impl. font-char mapping / bug #6882
Rose Tattoo did different font char mapping for at least
the German version of the game (can't verify anything else).
RT seems to map 0xE1 only, but to a different character
and other upper characters (>= 0x80) are not mapped at all.

this fixes broken special characters in RT.
2015-08-07 22:00:42 +02:00
Torbjörn Andersson
1266fd95c5 SHERLOCK: Fix comment typo and remove unnecessary semicolon 2015-06-29 07:25:24 +02:00
Paul Gilbert
1732428aa6 SHERLOCK: RT: Implement font _yOffsets table
Since this table must only be set up for RT when changing fonts, I
needed to put an engine reference in the Fonts base class. Because
of this, I've been able to simplify the creation of the various
surfaces, since you no longer need to pass in the platform
2015-06-18 19:21:04 -04:00
Martin Kiewitz
8d07a00f39 SHERLOCK: font class char 0xE1 treatment -> 135
instead of 136. confirmed via disassembly.
happens in German version, when talking to kid in 2nd room
2015-06-14 02:27:23 +02:00
Martin Kiewitz
41b74a89d2 SHERLOCK: font class adjustment for int. versions
- allow characters > 0x80
- adjust characters >= 0x80 (Spanish + German didn't do exactly
the same)
- behavior inside SH2 unconfirmed
- makes text in SH1 German+Spanish work
2015-06-14 01:05:36 +02:00
Martin Kiewitz
765dbe647c SHERLOCK: 3DO: some work on font file loading 2015-06-12 21:26:24 +02:00
Martin Kiewitz
9bacb04918 SHERLOCK: font class 2015-06-12 18:48:44 +02:00
Martin Kiewitz
316cd55bb2 SHERLOCK: 3DO: room fade in, font ignore UI ignore 2015-06-12 13:53:44 +02:00
Torbjörn Andersson
d1f382269c SHERLOCK: Remove stray character from comment header. 2015-06-11 18:19:10 +02:00
Paul Gilbert
40a3a3b835 SHERLOCK: RT map display partially working 2015-06-11 08:32:31 -04:00
Martin Kiewitz
d86bec542c SHERLOCK: font class: skip for 3DO 2015-06-11 12:32:26 +02:00
Paul Gilbert
dd1781a3f2 SHERLOCK: Split up image file classes into their own file 2015-06-10 19:58:04 -04:00
Paul Gilbert
1dda0f6c40 SHERLOCK: Split up font handling into a new Fonts surface base class
This will be needed for Rose Tattoo, which needs to be able to
write text to arbitrary surfaces
2015-06-10 19:46:14 -04:00