aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2013-08-02COMMON: Define all Unix98/BSD math constants in scummsys.h.Johannes Schickel
This should fix compilation on mingw64 with --enable-c++11 and also make sure the constants are present on other systems for the uncommon case they might be missing.
2013-08-02COMMON: Add comment explaining reason for defining math constants.D G Turner
2013-07-31COMMON: Move definition of math constants to scummsys header.D G Turner
This should have no effect on common/math.h as scummsys is included at the top anyway, but this will fix compilation on some toolchains when strict ANSI language compliance is enabled i.e. -std=c++11, rather than -std=gnu11. This causes an issue as a side effect is to set a guard which disables various non-standard defines in the system headers i.e. the M_PI and M_SQRT1_2 constant definitions in the MinGW x86_64 toolchain on buildbot. By moving this into scummsys.h after the point of system math.h inclusion, we can ensure that M_PI etc. are always present.
2013-07-30COMMON: Enforce formatting guidelines a bit more in util.h.Johannes Schickel
2013-07-29COMMON: Revert last commit as rightfully pointed out by fuzze.Eugene Sandulenko
2013-07-29COMMON: Added copy constructors and copier to Rect and Point.Eugene Sandulenko
2013-07-18Merge pull request #353 from clone2727/eventrec_timer_fixEugene Sandulenko
ALL: Don't use EventRecorder at all when not compiled in
2013-07-15RECORDER: Fix wrong argument orderEugene Sandulenko
2013-07-14JANITORIAL: Remove trailing whitespaceSven Hesse
2013-07-14RECORDER: Fix CID 1046886. Uninit class variables.Eugene Sandulenko
2013-07-11COMMON: Cleanup the MacResManager a bitMatthew Hoops
2013-07-06ALL: Don't use EventRecorder at all when not compiled inMatthew Hoops
2013-07-06RECORDER: Fix tests compilation. Patch by D G TurnerEugene Sandulenko
2013-07-05Revert "COMMON: Fix crash when the keymapper and the event recorder are enabled"Filippos Karapetis
This reverts commit 93987d999c61221bda3da548c8c81f5d6d906a12.
2013-07-05COMMON: Fix crash when the keymapper and the event recorder are enabledFilippos Karapetis
DefaultEventManager registers a keymapper that is supposed to be auto-freed. However, the event recorder then sets itself as a new keymapper, but because the autofree flag is already set, registerMapper() ends up deleting the event recorder itself. Setting the autofree flag before actually freeing the mapper fixes the issue and prevents ScummVM from crashing on startup
2013-07-05COMMON: Initialize EventDispatcher::_autoFreeMapper.Johannes Schickel
This fixes a branching on uninitialized variable reported by valgrind on startup.
2013-07-04Merge pull request #331 from sev-/gsoc2012-eventsrecorderEugene Sandulenko
GSoC2012: Event Recorder (reworked)
2013-07-01Merge pull request #342 from RichieSams/addDeleteRangeStringMethodJohannes Schickel
COMMON: Add erase method to String class
2013-06-20COMMON: Add erase method to String classrichiesams
2013-06-09COMMON: Fix custom NE resource type namesMatthew Hoops
2013-06-08COMMON: Add basic documentation for RDFTWillem Jan Palenstijn
2013-06-08COMMON: Improve comment in CosineTable::CosineTable.Johannes Schickel
This commit changes the comment to use the same variable names as we do in the code. Furthermore, it also makes the comment a bit easier to grasp.
2013-06-08COMMON: Try to document the SineTable/CosineTable table entries.Johannes Schickel
2013-06-08COMMON: Save memory by allocating only required entries in Cosine-/SineTable.Johannes Schickel
The tables only contain (2^bitPrecision)/2 entries. The code allocated twice as many entries previously.
2013-06-08COMMON: Fix regression in SineTable creation.Johannes Schickel
This is a regression from f4ba8a6485b097a8ef1e2004d1af127243f379f1. The commit replaced the static cosine and sine tables with dynamically created ones. In the process of that a copy&paste error happened which made the sine table use the layout of the cosine table. This commit now changes the dynamically created sine tables to conform to the layout of the previous static tables.
2013-06-06COMMON: Add depth/flat parameters to addSubDirectoryMatching.Alyssa Milburn
2013-05-17RECORDER: Implement Events RecorderEugene Sandulenko
2013-05-02COMMON: Change kPlatformPC to kPlatformDOSMatthew Hoops
"PC" was very ambiguous and now it matches what we show in the GUI. This also corrects sword2's platform to Windows.
2013-04-19COMMON: Add ConfigFile::addSection function.Alyssa Milburn
2013-04-16COMMON: Don't use parserError for non-parser errorsWillem Jan Palenstijn
2013-04-15COMMON: Remove useless member variable FFT:_permutationSven Hesse
2013-03-20COMMON: Fix assert condition in String::setChar()Thierry Crozat
2013-02-24Merge pull request #309 from dreammaster/hopkinsPaul Gilbert
Hopkins FBI Pull Request
2013-02-23ALL: Fix typo (existant->existent)Willem Jan Palenstijn
2013-02-15Merge branch 'master' into hopkinsDreammaster
2013-01-28Merge pull request #305 from giucam/bufferedseekableJohannes Schickel
Make BufferedSeekableReadStream use the buffer with SEEK_SET and SEEK_END
2013-01-28COMMON: Fix successive seeks in BufferedSeekableReadStream.Johannes Schickel
This fixes the failing test case added in da8eeb9dbed2102764b3ca0697d6882bae0402cc. Thanks to wjp for his input on this.
2013-01-26JANITORIAL: Use "End of anonymous namespace" as comment for anonymous ↵Johannes Schickel
namespaces.
2013-01-26JANITORIAL: Enforce "} // End of namespace" with a single space after }.Johannes Schickel
2013-01-26COMMON: Make BufferedSeekableReadStream use the buffer with SEEK_SET and ↵Giulio Camuffo
SEEK_END
2013-01-26COMMON: Return NULL in wrapCompressedReadStream for compressed streams when ↵Johannes Schickel
ZLIB is disabled.
2013-01-26Merge pull request #301 from lordhoto/c++11-playgroundJohannes Schickel
RFC: Allow use of override and nullptr. Also allow C++11 compilation.
2013-01-24JANITORIAL: Fix ){ -> ) {Einar Johan Trøan Sømåen
2013-01-09COMMON: Add a header for C++11 keywords for pre-C++11 compilers.Johannes Schickel
This currently adds defines for nullptr and override, so we can use them in pre-C++11 compilers, while taking advantage of them with C++11 compilers.
2013-01-06COMMON: Add PackBitsReadStream to iff_containerTomas Jakobsson
2012-12-14HOPKINS: Add support for BeOS full versionStrangerke
2012-12-13Merge pull request #293 from clone2727/qtmidiclone2727
Add support for QuickTime Music playback
2012-12-13COMMON: Forbid symbols for the rest of is* from ctype.h.Johannes Schickel
I also moved the isprint case to the correct position. This adds a FIXME to our lua code from sword25, which uses iscntrl directly.
2012-12-13COMMON: Add wrapper for isprint.Johannes Schickel
This is done in the spirit of 658080deeda79d20ea40643569fbcb072573e7cf.
2012-12-13COMMON: Fix potential uninitialized memory usageMatthew Hoops