aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/text16.cpp
AgeCommit message (Collapse)Author
2017-08-06JANITORIAL: Silence more GCC 7 warningsTorbjörn Andersson
All these fall through were marked as deliberate, so again I've only changed the comment to silence GCC.
2017-02-05SCI: Fix more unsafe C-string usageColin Snover
2016-10-09JANITORIAL: Remove trailing spacesEugene Sandulenko
2016-08-19SCI32: Remove CoordAdjuster32, at least for the momentColin Snover
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.
2015-12-28SCI: Fix obsolete commentLars Skovlund
2015-12-28SCI: Fix when more than 10 font codes are usedLars Skovlund
2015-12-14SCI: use diff. PC98 word wrap tables for SCI0/01/1Martin Kiewitz
also added even more comments about details of word wrapping SCI0 (PQ2) and SCI1 (Brain/KQ5/SQ4) got their own table now
2015-12-13SCI: add difference for SCI1 PC-98 word-wrappingMartin Kiewitz
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
2014-11-06SCI: hopefully Japanese text wrapping is fine nowMartin Kiewitz
also removed duplicate entries in punctuation table thanks to wjp
2014-11-04SCI: fix Japanese Space Quest 4 (intro + buttons)Martin Kiewitz
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-02SCI: GetClosest() bugfix the bugfix thx wjpMartin Kiewitz
2014-11-02SCI: bugfix in GetLongest() for Japanese SQ4Martin Kiewitz
2014-11-02SCI: text16 Shift-JIS font switch fixedMartin Kiewitz
fixes Police Quest 2 Japanese intro and others, where the internal SCI font was used and not the Shift-JIS hires font
2014-11-02SCI: fix another bug in text16 / GetLongest()Martin Kiewitz
2014-11-02SCI: fix bug in text16 / GetLongest()Martin Kiewitz
2014-11-01SCI: text16 GetLongest() changes fixes bug #5334Martin Kiewitz
also fixes bug #5159 also fixes Japanese line wrapping (hopefully)
2014-11-01SCI: revert r55034, fixes bug #6539Martin Kiewitz
original bug wasn't solved properly will reopen the original bug #5334 and figure out that one instead
2014-02-18SCI: Make GPL headers consistent in themselves.Johannes Schickel
2013-04-18SCI: Remove a bunch of unused private member variablesMax Horn
All instances uncovered by clang warnings.
2012-02-20COMMON: Move isFoo functions to namespace Common, add doxygen commentsMax Horn
2012-02-15ALL: Avoid using is* macros from ctype.hMax Horn
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.
2011-06-23ANALYSIS: Add static casts to is* functionsLittleboy
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-05-25ALL: behaviour -> behaviorMatthew Hoops
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-03-13SCI: Fixed regression of rev b1055a3c86. Japanese games should work againmd5
2011-03-02SCI: Fixed bug #3040161 - "LONGBOW: Textbox glitch"md5
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-01-09SCI: Changed the bShow parameter of GfxText16:Box() into a boolFilippos Karapetis
svn-id: r55179
2011-01-08SCI: Some function renamingFilippos Karapetis
Draw_Status -> DrawStatus Draw_String -> DrawString svn-id: r55178
2010-12-24SCI: Fixed bug #3059860 - "LB2CD: Glitch in Act 6 coroner answer buttons"Filippos Karapetis
svn-id: r55034
2010-09-26SCI: adding separate status drawing codeMartin Kiewitz
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-09SCI: adding text code reference supportMartin Kiewitz
fixes glossary in pepper, bug #3040039 svn-id: r52651
2010-08-12SCI: fixing text color supportMartin Kiewitz
fixes some words not being red in pepper (part of bug #3040039) svn-id: r52031
2010-07-30SCI: finally fixing font codesMartin Kiewitz
fixing regressions of r51511&51512 and cleaning up as well - for sq5 svn-id: r51513
2010-07-30SCI: fixing another text color code issueMartin Kiewitz
(sq5 some dialog boxes again using wrong font in rare cases) svn-id: r51512
2010-07-30SCI: fixing font code handling in kTextSizeMartin Kiewitz
fixes incorrect window proportions in sq5 when hailing ship at clorox II svn-id: r51511
2010-07-26SCI: fixing text fonts not working correctlyMartin Kiewitz
fixes sq5 and bug #3034766 svn-id: r51335
2010-06-29SCI: Rewrap more commentsMax Horn
svn-id: r50500
2010-06-24SCI: fix kTextSize to not crash when destination has an invalid rect in itMartin Kiewitz
svn-id: r50210
2010-06-15SCI: move textSize and textFonts and textColors inside gfxText16Martin Kiewitz
svn-id: r49851
2010-05-14Silenced some MSVC warningsFilippos Karapetis
svn-id: r49030
2010-04-24SCI: added special comments about r48784Martin Kiewitz
svn-id: r48785
2010-04-24SCI: changing GetLongest() on kanji (again) hopefully it's now working as in ↵Martin Kiewitz
sierra sci :P svn-id: r48784
2010-04-24SCI: document skipping over breaking spaces done in r48781Martin Kiewitz
svn-id: r48782
2010-04-24SCI: change the way we handle breaking spaces based on how sierra sci does ↵Martin Kiewitz
it, revert r48778/r48779 svn-id: r48781
2010-04-23SCI: fix for regression of r48778: do add spaces to width, if we are at ↵Martin Kiewitz
ending of text - the whole change may be wrong altogether svn-id: r48779
2010-04-23SCI: text16 ::Width() doesn't add ending spaces to the width anymore, sierra ↵Martin Kiewitz
sci also doesn't do this - fixes windows being too large sometimes svn-id: r48778
2010-04-23SCI: pc98 sierra interpreter had special code, that circumvents having a ↵Martin Kiewitz
japanese punctuation char as first char on new lines - we do so now as well svn-id: r48777
2010-04-20SCI: the pc98 rom has to display kanji directly, because of the bad ↵Martin Kiewitz
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-20SCI: sq4/japanese uses sjis 0x9781 for line breaks as wellMartin Kiewitz
svn-id: r48742
2010-04-19SCI: removed bad commentMartin Kiewitz
svn-id: r48734