Commit Graph
60 Commits
Author SHA1 Message Date
Torbjörn Andersson 70a2ca8b7d JANITORIAL: Silence more GCC 7 warnings
All these fall through were marked as deliberate, so again I've only
changed the comment to silence GCC.
2017-08-06 13:30:51 +02:00
Colin Snover 10d97ce379 SCI: Fix more unsafe C-string usage 2017-02-05 12:38:21 -06:00
Eugene Sandulenko dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Colin Snover 4e1a9be816 SCI32: Remove CoordAdjuster32, at least for the moment
This may come back in the future to deduplicate some gfx code,
but SCI32 had two different inlined ways of doing coordinate
conversions with different rounding methods, so CoordAdjuster32
didn't get used when the graphics system was rewritten.

At the moment, SCI32 code uses the mulru/mulinc methods from
helper.h for scaling up/down coordinates.
2016-08-19 15:23:10 -05:00
Lars Skovlund 54acbdccc6 SCI: Fix obsolete comment 2015-12-28 10:28:27 +01:00
Lars Skovlund 9a3084d320 SCI: Fix when more than 10 font codes are used 2015-12-28 05:50:26 +01:00
Martin Kiewitz 431d33b119 SCI: use diff. PC98 word wrap tables for SCI0/01/1
also added even more comments about details of word wrapping
SCI0 (PQ2) and SCI1 (Brain/KQ5/SQ4) got their own table now
2015-12-14 00:20:56 +01:00
Martin Kiewitz 1161e3e89d SCI: add difference for SCI1 PC-98 word-wrapping
fixes small issue in Castle of Dr. Brain PC-98 Japanese
room 120, when looking at the table
Also added a few comments to Japanese word wrapping code
2015-12-13 22:56:42 +01:00
Martin Kiewitz 0fd16ef39f SCI: hopefully Japanese text wrapping is fine now
also removed duplicate entries in punctuation table
thanks to wjp
2014-11-06 20:45:24 +01:00
Martin Kiewitz eff78c4424 SCI: fix Japanese Space Quest 4 (intro + buttons)
At least SQ4 uses #j text prefix as signal for the
interpreter to not use the PC9801 hires font, but
to use the internal low res font instead
2014-11-04 22:01:21 +01:00
Martin Kiewitz fa7a6d473e SCI: GetClosest() bugfix the bugfix thx wjp 2014-11-02 19:37:23 +01:00
Martin Kiewitz 11ba447483 SCI: bugfix in GetLongest() for Japanese SQ4 2014-11-02 19:31:37 +01:00
Martin Kiewitz 5aae18feb8 SCI: text16 Shift-JIS font switch fixed
fixes Police Quest 2 Japanese intro and others,
where the internal SCI font was used and not
the Shift-JIS hires font
2014-11-02 13:08:33 +01:00
Martin Kiewitz 9d693b9a79 SCI: fix another bug in text16 / GetLongest() 2014-11-02 02:31:32 +01:00
Martin Kiewitz c4ca0a7de2 SCI: fix bug in text16 / GetLongest() 2014-11-02 02:16:00 +01:00
Martin Kiewitz c9e74d6d54 SCI: text16 GetLongest() changes fixes bug #5334
also fixes bug #5159
also fixes Japanese line wrapping (hopefully)
2014-11-01 23:36:29 +01:00
Martin Kiewitz 9561d5f6f8 SCI: revert r55034, fixes bug #6539
original bug wasn't solved properly
will reopen the original bug #5334
and figure out that one instead
2014-11-01 00:57:26 +01:00
Johannes Schickel 8fc7d60feb SCI: Make GPL headers consistent in themselves. 2014-02-18 02:39:37 +01:00
Max Horn 51bde6ced5 SCI: Remove a bunch of unused private member variables
All instances uncovered by clang warnings.
2013-04-18 23:50:20 +02: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
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
Matthew Hoops eea482fa43 ALL: behaviour -> behavior 2011-05-25 10:50:46 -04:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
md5 5a7c2e0df5 SCI: Fixed regression of rev b1055a3c86. Japanese games should work again 2011-03-13 23:34:05 +02:00
md5 b1055a3c86 SCI: Fixed bug #3040161 - "LONGBOW: Textbox glitch"
GetLongest() could exceed the maximum width with the very last
character of a word. The same fix has been applied to the SCI32 code.
2011-03-02 20:38:21 +02:00
Filippos Karapetis cf94a99bb7 SCI: Changed the bShow parameter of GfxText16:Box() into a bool
svn-id: r55179
2011-01-09 00:32:26 +00:00
Filippos Karapetis 505e1888e5 SCI: Some function renaming
Draw_Status -> DrawStatus
Draw_String -> DrawString

svn-id: r55178
2011-01-08 23:16:44 +00:00
Filippos Karapetis bc9442d6d8 SCI: Fixed bug #3059860 - "LB2CD: Glitch in Act 6 coroner answer buttons"
svn-id: r55034
2010-12-24 15:53:06 +00:00
Martin Kiewitz cd6aa62702 SCI: adding separate status drawing code
now also draws "IV" in KQ4 correctly. This wasn't the case before because we reused the regular drawing code, which would see the 0xA ("IV") as linebreak

save for backport

svn-id: r52913
2010-09-26 18:23:53 +00:00
Martin Kiewitz 9c67db6b0d SCI: adding text code reference support
fixes glossary in pepper, bug #3040039

svn-id: r52651
2010-09-09 10:52:17 +00:00
Martin Kiewitz 91c2c7f401 SCI: fixing text color support
fixes some words not being red in pepper (part of bug #3040039)

svn-id: r52031
2010-08-12 09:52:00 +00:00
Martin Kiewitz 839ba339ed SCI: finally fixing font codes
fixing regressions of r51511&51512 and cleaning up as well - for sq5

svn-id: r51513
2010-07-30 16:55:36 +00:00
Martin Kiewitz 6aa228ccd8 SCI: fixing another text color code issue
(sq5 some dialog boxes again using wrong font in rare cases)

svn-id: r51512
2010-07-30 16:23:09 +00:00
Martin Kiewitz 6dd5dfb7d0 SCI: fixing font code handling in kTextSize
fixes incorrect window proportions in sq5 when hailing ship at clorox II

svn-id: r51511
2010-07-30 16:08:27 +00:00
Martin Kiewitz a27f30fa15 SCI: fixing text fonts not working correctly
fixes sq5 and bug #3034766

svn-id: r51335
2010-07-26 22:58:06 +00:00
Max Horn 8db0f726c0 SCI: Rewrap more comments
svn-id: r50500
2010-06-29 14:55:32 +00:00
Martin Kiewitz 0722d96a3e SCI: fix kTextSize to not crash when destination has an invalid rect in it
svn-id: r50210
2010-06-24 11:52:08 +00:00
Martin Kiewitz 891b568fde SCI: move textSize and textFonts and textColors inside gfxText16
svn-id: r49851
2010-06-15 13:01:07 +00:00
Filippos Karapetis 25bac3bef4 Silenced some MSVC warnings
svn-id: r49030
2010-05-14 15:21:00 +00:00
Martin Kiewitz 61a57f53e5 SCI: added special comments about r48784
svn-id: r48785
2010-04-24 16:09:17 +00:00
Martin Kiewitz eb048f48b8 SCI: changing GetLongest() on kanji (again) hopefully it's now working as in sierra sci :P
svn-id: r48784
2010-04-24 15:50:23 +00:00
Martin Kiewitz ca93a6ce9c SCI: document skipping over breaking spaces done in r48781
svn-id: r48782
2010-04-24 12:53:14 +00:00
Martin Kiewitz 02b9b10199 SCI: change the way we handle breaking spaces based on how sierra sci does it, revert r48778/r48779
svn-id: r48781
2010-04-24 12:49:22 +00:00
Martin Kiewitz b8a5507a17 SCI: fix for regression of r48778: do add spaces to width, if we are at ending of text - the whole change may be wrong altogether
svn-id: r48779
2010-04-23 21:57:29 +00:00
Martin Kiewitz 62833a3fd3 SCI: text16 ::Width() doesn't add ending spaces to the width anymore, sierra sci also doesn't do this - fixes windows being too large sometimes
svn-id: r48778
2010-04-23 21:18:16 +00:00
Martin Kiewitz 35b21a94ff SCI: pc98 sierra interpreter had special code, that circumvents having a japanese punctuation char as first char on new lines - we do so now as well
svn-id: r48777
2010-04-23 13:51:59 +00:00
Martin Kiewitz 1e62e44fb6 SCI: the pc98 rom has to display kanji directly, because of the bad behaviour of GetLongest() we will actually put more chars in each line as actually fit. That way the scripts will only show most of the chars, but actually leave out some of the pixels of the far right characters. We now show kanji chars directly, sort of reproducing pc98 rom behaviour
svn-id: r48748
2010-04-20 16:46:26 +00:00
Martin Kiewitz 45833f7e9a SCI: sq4/japanese uses sjis 0x9781 for line breaks as well
svn-id: r48742
2010-04-20 11:13:09 +00:00
Martin Kiewitz 589103f1b1 SCI: removed bad comment
svn-id: r48734
2010-04-19 20:43:17 +00:00