Commit Graph

379 Commits

Author SHA1 Message Date
Johannes Schickel
b0ba4b01a4 COMMON: Add wrapper for isprint.
This is done in the spirit of 658080deed.
2012-12-13 21:08:47 +01:00
Filippos Karapetis
ef671f20b1 HUGO: Use surface width instead of its pitch when copying to raw memory blobs
This is according to wjp's suggestion - the pitch didn't make sense there
2012-09-14 03:35:18 +03:00
Filippos Karapetis
fb6a5a140d HUGO: Switch to the common PCX decoder 2012-09-13 01:51:21 +03:00
Johannes Schickel
3b14ff33ca HUGO: Slight cleanup in querySaveMetaInfos. 2012-07-03 18:39:50 +02:00
Strangerke
e8546a46a0 HUGO: Remove F9 key handling 2012-06-18 21:30:51 +02:00
Strangerke
6e11720e29 HUGO: Missing file in previous commit 2012-06-18 21:27:58 +02:00
Strangerke
53ee7f52a9 HUGO: Remove dead code 2012-06-18 21:23:39 +02:00
Strangerke
179427c78f HUGO: Rename pointers 2012-06-13 21:18:37 +02:00
Strangerke
999ae29de4 HUGO: Rename structs and enums 2012-06-13 20:58:01 +02:00
Strangerke
fbc2c6d08a HUGO: More renaming 2012-06-13 17:44:09 +02:00
Strangerke
0c7fcff8a3 HUGO: Use Common::Point in pathfinding 2012-06-13 16:28:47 +02:00
Strangerke
d3929bd4bc HUGO: Some more renaming 2012-06-13 14:50:54 +02:00
Strangerke
998448128c HUGO: Some more renaming 2012-06-13 11:50:49 +02:00
Strangerke
2e7b16a8bd HUGO: Apply coding convention (in progress) 2012-06-13 11:28:25 +02:00
Johannes Schickel
7c5cf1b400 GUI: Add helper to SaveLoadChooser, which uses the currently active target.
This reduces the code duplication in all client code, which formerly duplicated
the querying of the plugin, game id etc. and now simply calls the newly added
method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10 04:53:17 +02:00
Johannes Schickel
15046a7529 GUI: Get rid of SaveLoadChooser::setSaveMode.
We already pass the title and process button name to the constructor of
SaveLoadChooser and then do not offer any way of changing it, thus changing
the edit mode of the chooser is kind of pointless and was never actually used.
Instead we pass the mode on SaveLoadChooser construction now.
2012-06-10 04:19:45 +02:00
Matthew Hoops
426c81a7a7 GRAPHICS: Rewrite ImageDecoder to have an improved API
The new bitmap decoder class is based off the Mohawk one, and now has 8bpp decoding capability.
2012-03-20 01:06:47 +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
Tarek Soliman
edc5249772 JANITORIAL: Fix template definition whitespace 2012-02-10 21:17:27 -06:00
Alyssa Milburn
7e9b0114d8 HUGO: Fix keyHandler (noticed by Strangerke). 2012-02-02 12:40:25 +01:00
Max Horn
f485450758 HUGO: Fix warning about hidden pause() method from parent class 2011-12-12 16:27:41 +01:00
Strangerke
d5a42b298f HUGO: Remove obsolete todo 2011-11-30 00:47:06 +01:00
Strangerke
bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Strangerke
36ad5d89c1 HUGO: Take into account wjp's and LordHoto's suggestions 2011-11-06 20:38:18 +01:00
Strangerke
f691cadfc1 HUGO: Fix a CppCheck warning reported by Tetsuo55 2011-11-05 17:40:16 +01:00
Eugene Sandulenko
07163c76c9 HUGO: Fix warnings 2011-11-03 00:16:25 +00:00
D G Turner
2a7c65f02d HUGO: Rename Sequence Index Direction Enums.
This is to avoid any further collisions with system defines.
2011-10-31 21:59:32 +00:00
Matt Lewandowsky
a9d6c87ea6 HUGO: Change _UP to __UP to avoid definition conflict on some backends. 2011-10-31 12:11:11 +01:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Alyssa Milburn
a73c3126c8 HUGO: Improvements to SoundHandler::pcspkr_player().
Better comments, improved timing and square waves.
2011-09-08 21:07:15 +02:00
Johannes Schickel
16344ab6a8 HUGO: Made some static data const. 2011-09-08 19:51:51 +02:00
Strangerke
b60a706751 JANITORIAL: Fix some formatting glitches in gob, hugo and toon 2011-09-08 07:55:40 +02:00
Alyssa Milburn
5efba92b8e HUGO: Coding style fixes. 2011-08-24 10:58:06 +02:00
Christoph Mallon
e35b4f20c1 GRAPHICS: Simplify the interface of Graphics::loadThumbnail().
Now it returns the Surface, so the caller does not need to create one and pass it.
2011-08-07 15:19:09 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Eugene Sandulenko
78f1ea7690 OSYSTEM: extended installTimerProc() with timer ID parameter 2011-08-06 11:28:35 +01:00
Willem Jan Palenstijn
d21402ef3c HUGO: Fix incorrect usage of sizeof
Thanks to salty-horse for the report. The new sizes are
the ones that were replaced by sizeof in 399b59a583.
2011-06-25 21:35:17 +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
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
fcc5580d9f HUGO: Replace vsprintf by Common::String::vformat 2011-06-18 01:36:15 +02:00
Max Horn
39aa627083 HUGO: Switch to alternate AdvancedMetaEngine, avoid ADParams 2011-06-10 22:15:42 +02:00
Max Horn
4827cc914a ENGINES: Change incorrect use of 'target' to 'gameid' 2011-06-10 22:15:40 +02:00
Max Horn
477d6233c3 ENGINES: Change 2nd param of Engine::saveGameState to Common::String 2011-06-02 18:31:59 +02:00
strangerke
6098506a42 HUGO: Fix comments 2011-05-25 23:58:46 +02:00
strangerke
c6ef39dcf2 HUGO: Add 3 object related functions to the console 2011-05-25 23:39:28 +02:00
strangerke
fe41da83ad HUGO: Add boundaries() to the console. God mode no longer shows boundaries, as in the original 2011-05-25 23:39:10 +02:00
strangerke
65a9ef7639 HUGO: Cosmetic modification, for consistency 2011-05-25 23:38:55 +02:00