Commit graph

126 commits

Author SHA1 Message Date
athrxx
afef3d71cb SCUMM: (DIG/CJK) - fix blast text rendering and positioning
- fix getStringWidth()
- fix string translation
- skip special newline character when drawing text
2020-10-24 17:58:28 +02:00
aryanrawlani28
4b6976c558 GUI: U32: Reduce number of files changed and fixes
Up until last commit, everything was working fine but the amount of files changed was too large. This commit tries to reduce the changes.

- Add a fake constructor to Keymap, text-to-speech, setDescription (save-state)
- Redirecting functions for PopUpWidget::appendEntry, ButtonWidget::setLabel, GUIErrorMessage
- Use the above functions and constructors to reduce changes in Engines
- Fix warnings being in unicode. Only output english text in - Warnings, Errors, etc.
- Mark some strings as "translation" strings. (Not yet added to POTFILES)
- Remove some CP related things from po/modules.mk
- Previously used some Common::convertToU32 where it was not necessary, replace this with u32constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28
bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
BLooperZ
441e73bf58 SCUMM: do not reverse strings in HE 2020-06-11 21:10:30 +02:00
BLooperZ
fdeffa1a32 SCUMM: fix loop counter type 2020-01-01 20:28:56 +02:00
BLooperZ
b7275be051 SCUMM: use reliable types in fake bidi 2020-01-01 20:28:56 +02:00
BLooperZ
f13c76fec9 SCUMM: move comment to more appropriate location 2020-01-01 00:31:21 +01:00
BLooperZ
cbcb36ac61 SCUMM: add more comments 2020-01-01 00:31:21 +01:00
BLooperZ
c10ed91c3e SCUMM: avoid allocating large buffers on stack 2020-01-01 00:31:21 +01:00
BLooperZ
a96b82203b SCUMM: add comments and fix formatting 2020-01-01 00:31:21 +01:00
BLooperZ
e411a539cb SCUMM: use memset for initialization 2020-01-01 00:31:21 +01:00
BLooperZ
2105313d8b SCUMM: remove forced right-to-left mode 2020-01-01 00:31:21 +01:00
BLooperZ
800ea6fb15 SCUMM: fix formatting 2020-01-01 00:31:21 +01:00
BLooperZ
0af04124c8 SCUMM: export fakeBidi to function 2020-01-01 00:31:21 +01:00
BLooperZ
b75b5cb6b6 SCUMM: consider code 2 in reversal 2020-01-01 00:31:21 +01:00
BLooperZ
390a0abfed SCUMM: flip dialogue selection symbol in indy4 2020-01-01 00:31:21 +01:00
BLooperZ
43bdbdf3fa SCUMM: fix missing dialogue in indy4 2020-01-01 00:31:21 +01:00
BLooperZ
f411135ef6 SCUMM: remove condition for aligning verb lines 2020-01-01 00:31:21 +01:00
BLooperZ
9b2ee566e4 SCUMM: remove condition for aligning verb lines 2020-01-01 00:31:21 +01:00
BLooperZ
8bcdaa6e45 SCUMM: minimize changes required for rtl 2020-01-01 00:31:21 +01:00
BLooperZ
0625518e9f SCUMM: in-place verb strings reversal 2020-01-01 00:31:21 +01:00
BLooperZ
80218a5203 SCUMM7: reverse in single place 2020-01-01 00:31:21 +01:00
BLooperZ
12c86f2bc1 SCUMM: exclude digits from fake rtl support + no align in samnmax 2020-01-01 00:31:21 +01:00
BLooperZ
cd4ce42b46 SCUMM: fix title screen positioning 2020-01-01 00:31:21 +01:00
BLooperZ
7b0e50cdce SCUMM: conditional alignment 2020-01-01 00:31:21 +01:00
BLooperZ
5e26fbdf9a SCUMM: special cases for indy4 2020-01-01 00:31:21 +01:00
BLooperZ
f6e859800d SCUMM: disable debug messages 2020-01-01 00:31:21 +01:00
BLooperZ
b67d954351 SCUMM: disable warnings 2020-01-01 00:31:21 +01:00
BLooperZ
d11c6b655c SCUMM: eliminate shadowing 2020-01-01 00:31:21 +01:00
BLooperZ
e4d70141f0 SCUMM: better locale check 2020-01-01 00:31:21 +01:00
BLooperZ
68c6038e9c SCUMM: add RTL support for scumm v4 to v6 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
D G Turner
84d0a294af SCUMM: Replace Various String Functions with Common String Usage
This removes the dependency on the unsafe strcpy and strcat string
functions with usage of Common::String instead.
2019-09-15 20:20:03 +01:00
Torbjörn Andersson
fba0afefa5 SCUMM: Remove unnecessary space. 2018-06-04 06:41:51 +02:00
Ori Avtalion
3ad6af92f2 SCUMM: Reduce audio header dependencies 2016-05-21 13:55:38 +03:00
Kirben
e670951a46 SCUMM: Fix bug #6592 SCUMM: ZAK - Read Ticket is too fast to read. 2015-06-10 07:12:25 +02:00
Johannes Schickel
3847465163 SCUMM: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Willem Jan Palenstijn
9ffe3e11d9 Merge pull request #182 from fingolfin/forbid-ctype
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Max Horn
4f8665fc83 COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06: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
Eugene Sandulenko
c451ae639f SCUMM: Proper fix of Russian subtitles
Initial fix in 11a17b3 (r51211) led to chopped inventory items.
No idea why it does not work with our code, as it seems to match
the disassembly. Thus implementing this hackish workaround.
2011-08-06 11:28:30 +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
athrxx
4b98d6a9e4 SCUMM: Fix bug #1013617
(ZAK FM-TOWNS: Wrong verb ('Teleport To') shown)
2011-05-29 01:04:14 +02:00
Max Horn
82343f6649 SCUMM: Remove some unused var warnings (see bug #3293800) 2011-05-14 23:50:43 +02:00
Max Horn
b37463fe59 SCUMM: Move class ResourceManager to its own header 2011-05-13 11:47:08 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Travis Howell
ccb8a01b17 SCUMM: Correct fix for bug #3145951 - DIG: Subtitles won't turn off (regression).
svn-id: r55053
2010-12-28 06:05:57 +00:00
Travis Howell
cfbac503ad SCUMM: Another fix for bug #3145951 - DIG: Subtitles won't turn off (regression).
svn-id: r55052
2010-12-28 05:43:03 +00:00