Commit graph

168 commits

Author SHA1 Message Date
athrxx
02bf7e0063 SCUMM: fix comment (typo/wording) 2021-08-15 00:48:34 +02:00
athrxx
e39b911895 SCUMM: (COMI/CJK) - fix 1-byte-character display in Smush movies
(bug #11947 - "SMUSH text rendering differences with Korean COMI")

Turns out that the interpreter has another hack that I missed...
2021-08-14 15:24:29 +02:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
BLooperZ
ad58230915 SCUMM: always enable line wrap on hebrew 2021-03-19 01:20:10 +01:00
sluicebox
93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
BLooperZ
73e8a49464 SCUMM: SMUSH: fix regression in hebrew text 2021-02-04 22:25:39 +02:00
athrxx
5fc9a43b8f SCUMM: (Smush) - cleanup text clipping
Move left side x boundary check from drawSubString() to drawStringWrap().
2020-12-04 00:02:28 +01:00
athrxx
30f4fd049e SCUMM: (SMUSH) - fix text coordinates and wrapping
Some fixes from disasm to have the text look pixel-exact like the original.

Some lines in COMI are still off a bit by 2 pixels to the left or to the right. Whilst I doubt that anyone would notice it I'll try to fix that, too.
2020-10-24 17:58:29 +02:00
athrxx
1266fdeb0d SCUMM: (COMI/CJK) - fix smush font glyph shadows
I have confirmed that this type of shadow (one shadow pixel to the left, one to the right and one to the bottom) is drawn for all CJK characters in COMI.
2020-10-24 17:58:29 +02:00
athrxx
c4d3cc6c18 SCUMM: (DIG/CJK) - fix regression in text positioning
CJK text in DIG was 2 pixels off vertically due to 4b13c33b.
COMI actually has a y-offset of 2 (not 7) for CJK fonts, but it is applied at a different location.
2020-10-24 17:58:28 +02:00
athrxx
651eca6abb SCUMM: (SMUSH) - fix text flags
- Flag 8 is just for the subtitles. This is actually handled correctly in line 538/539.
- Flag 4 is for the wrapping. Most cases I have seen set both 4 and 8, so the visible changes are subtle.
2020-10-24 17:58:28 +02:00
athrxx
9ff197ef8b SCUMM: (DIG/CJK) - fix CJK Smush font drawing
- fix character spacing, vertical placement, clipping etc.
- in particular I rewrote SmushFont::drawStringWrap() and modified getStringWidth() and getStringHeight() to match COMI disasm (fully compatible with DIG, but a bit nicer)
- this actually also fixes some slightly misplaced English (or other standard font language) strings
2020-10-24 17:58:28 +02:00
athrxx
09a9f4b158 SCUMM: (DIG/CJK) - fix 'invalid escape code' error in Chinese intro
(the '^' char could occasionally appear as the second byte in a 2byte character)
2020-10-24 17:58:28 +02:00
athrxx
b476e69b9d SCUMM: (DIG/CJK) - fix 2byte font glyph shadows
All CJK versions use the same shading. The original code hardly ever diverges for the different languages (mostly for accessing the character bitmap data from the font files).
2020-10-24 17:58:28 +02:00
Eugene Sandulenko
cff73c14d1 SCUMM: Implemented codec20 for SMUSH. Fixes #10899
It is a simple copying codec, used in FT Classic in Remaster.
2020-09-11 15:23:03 +02:00
Eugene Sandulenko
20125684ba SCUMM: Produce clear screen instead of bailing out in SMUSH codec 20 2020-09-04 17:43:08 +02:00
Eugene Sandulenko
7f738abe4f SCUMM: Treat 0x21 as breaking space in Chinese in SMUSH movies. Fixes #7126 2020-09-01 00:30:54 +02:00
Bastien Bouclet
730a1ee4cc SCUMM: Add override keywords 2020-02-09 12:43:16 +01:00
BLooperZ
2105313d8b SCUMM: remove forced right-to-left mode 2020-01-01 00:31:21 +01:00
BLooperZ
8bcdaa6e45 SCUMM: minimize changes required for rtl 2020-01-01 00:31:21 +01:00
ניב באר
72471ec431 SCUMM: rtl support for scumm-7-8 2020-01-01 00:31:21 +01:00
D G Turner
59b639ed4d SCUMM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-23 11:56:16 +00:00
Colin Snover
072a52a9d2 SCUMM: Replace use of strdup with Common::String 2018-08-18 16:30:05 +02:00
Eugene Sandulenko
6ad8df4873 SCUMM: Fix some class initializations 2016-11-19 17:30:16 +01:00
Ori Avtalion
3ad6af92f2 SCUMM: Reduce audio header dependencies 2016-05-21 13:55:38 +03:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Ori Avtalion
d8045c6727 JANITORIAL: Fix clang printf warnings 2016-01-07 14:55:32 +02:00
Filippos Karapetis
666a4f3a57 SCUMM: Adapt wording for the fix in commit f1c64c2afe 2015-02-03 12:35:17 +02:00
Thierry Crozat
f1c64c2afe SCUMM: Fix handling of string resources in smash player for Steam mac games
The Dig Steam/mac uses LF instead of CRLF for end of line.
This fixes display of subtitles in that version. This also fixes the crash
described in bug #6796.
2015-02-03 08:51:06 +00:00
wonst719
c23ac81e36 Fix non-MSVC build 2014-08-03 17:45:51 +09:00
wonst719
4b13c33b0a SCUMM: Refine SMUSH Korean text shadow rendering to match the original version as close as possible 2014-07-24 09:45:45 +09:00
Johannes Schickel
fa2297f6b7 SCUMM: Manually specify function alignment in ARM assembly. 2014-03-06 20:21:47 +01:00
Johannes Schickel
3847465163 SCUMM: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Matthew Hoops
0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Max Horn
4f8665fc83 COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
Max Horn
658080deed ALL: Avoid using is* macros from ctype.h
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Chris Warren-Smith
ed07b99b22 BADA: Misc changes merged from appstore release 2011-10-18 23:22:25 +10:00
Willem Jan Palenstijn
48dd74dd6d SCUMM: Revert "Avoid calling malloc with new_size=0"
This reverts commit d6f7e59336, and
marks the issue with a FIXME. The problem is that it not only skips the malloc,
but also the other code in that block.
2011-08-22 10:24:26 +02:00
Chris Warren-Smith
d6f7e59336 BADA: Avoid calling malloc with new_size=0 2011-08-21 16:38:18 +10:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Littleboy
b694a78f62 ANALYSIS: Add static casts to is* functions
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
dhewg
e19fe1c53f ASM: Defines do not get mangled 2011-04-23 03:39:38 +02:00
Max Horn
b52b6b8d2b SCUMM: Resolve some code duplication 2011-04-13 11:49:25 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Johannes Schickel
bb9e82c3b3 SCUMM: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:33 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00