Commit Graph

405 Commits

Author SHA1 Message Date
Torbjörn Andersson
531029f54a HUGO: Avoid drawing text above screen (bug #6799)
When drawing cursor text, don't draw it above the top of the screen,
since this would lead to memory corruption and crashes. I'm not quite
sure this is all of bug #6799 since it also mentioned that "sometimes
simply using a hotspot will be enough", but it's a start.
2015-02-05 00:04:04 +01:00
Johannes Schickel
ae4ffe01f0 ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +02:00
Matthew Hoops
740b6e8fbd IMAGE: Move all ImageDecoders to image/ 2014-02-28 00:27:28 -05:00
Johannes Schickel
a331f4aea9 HUGO: Make GPL headers consistent in themselves. 2014-02-18 02:39:35 +01:00
Johannes Schickel
5094cb90a2 HUGO: Indent REGISTER_PLUGIN_* for consistency. 2014-02-17 23:02:24 +01:00
Strangerke
d7c86f3913 HUGO: Remove a useless variable assignation 2014-02-09 11:39:00 +01:00
Strangerke
fd50556d1e HUGO: Reduce the scope of some variables 2014-02-09 11:37:30 +01:00
D G Turner
ef85456859 BUILD: Remove need for engine.mk in each engine directory.
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333 BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9 BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines.

Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
D G Turner
d77cf95a18 BUILD: Split engines.mk down to a single file per engine.
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474 BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Strangerke
79ecd017e2 HUFO: Fix CID 1002880, 1002881. Use nullptr where possible instead of 0 2013-11-01 14:15:19 +01:00
Strangerke
40c6569940 HUGO: Fix CID 1003560, 1002882 2013-10-31 08:25:19 +01:00
Strangerke
ba50475dfa HUGO: Fix CID 1003199-1003200, better fix of CID 1003197-1003198 2013-10-31 08:13:16 +01:00
Strangerke
f1817431df HUGO: Fix CID 1063173, 1002888, 1002886 2013-10-31 08:06:14 +01:00
Johannes Schickel
61fcf86679 HUGO: Do not set Surface::pixels directly anymore. 2013-08-03 04:14:07 +02:00
Johannes Schickel
2578ec6e2f HUGO: Take advantage of Surface::getPixels. 2013-08-03 04:02:51 +02:00
Johannes Schickel
578715b6f6 HUGO: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:32 +02:00
Sven Hesse
989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02: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
Strangerke
8fc8c69345 HUGO: Fix some uninitialized variables. CID 1002887 2013-04-26 08:43:23 +02:00
Strangerke
2d41bae732 HUGO: Add missing initializations in intro constructors. CID 1002884 and 1002885 2013-04-21 13:46:10 +02:00
Strangerke
d7a4a12b67 HUGO: Initialize variables in Hugo engine constructor. CID 1002886 2013-04-19 00:21:37 +02:00
Strangerke
6548104b96 HUGO: Fix Uninitialized scalar variables 2013-04-17 08:13:19 +02:00
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