aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2009-07-03If NDEBUG is #defined, then assert does nothing, leading to warnings about ↵Max Horn
'old_size' not being used -> fix that svn-id: r42056
2009-07-03Provided a virtual method for converting graphics rectangles from screen ↵Jody Northup
format to hardware format, for backend developers wanting to provide support for color component orders not directly supported in hardware. (This could probably use a fair bit of looking over, it's ugly and has some fairly arbitrary limitations) svn-id: r42051
2009-06-30renamed kTransactionPixelFormatNotSupported to ↵Jody Northup
kTransactionFormatNotSupported, retyped all Graphics::PixelFormat * parameters to const Graphics::PixelFormat *, (hopefully) repaired all memory leaks on screen and cursor format changes, provided OSystem::getScreenFormat and OSystem::getSupportedFormats methods for when ENABLE_RGB_COLOR is not set, completely forgot the "commit early, commit often" mantra. svn-id: r41972
2009-06-29Add some more explanation to Graphics::CursorManager::showMouse and ↵Johannes Schickel
OSystem::showMouse. svn-id: r41968
2009-06-28Changed OSystem::setWindowCaption to expect ISO LATIN 1 encoded input;Max Horn
also intentionally broke WinCE and Symbian ports (in an obvious way that can be undo by commenting out some text) -- hopefully this will get the maintainers' attention during the next release cycle, unlike my emails svn-id: r41932
2009-06-27changed initGraphics, and OSystem::initSize to take Graphics::PixelFormat * ↵Jody Northup
parameters instead of Graphics::PixelFormat parameters, to save unnecessary pixelformat initialization if ENABLE_RGB_COLOR is not set. svn-id: r41909
2009-06-26Converted OSystem::SetMouseCursor to take pointer to PixelFormat, instead of ↵Jody Northup
full PixelFormat. Removed OSystem::setCursorFormat (since I forgot to do so several commits ago) svn-id: r41901
2009-06-25API modification -- replaced "Graphics::PixelFormat getBestFormat()" with ↵Jody Northup
"Common::List<Graphics::PixelFormat> getSupportedFormats()" svn-id: r41854
2009-06-24made the cursor's pixel format a member of the cursor object, merged ↵Jody Northup
____CursorFormat functions into equivalent ____Cursor functions. svn-id: r41825
2009-06-23Added support for HungarianSven Hesse
svn-id: r41812
2009-06-23Merged format initialization into InitSize to allow for backends not ↵Jody Northup
supporting gfx transactions. svn-id: r41801
2009-06-20renamed ENABLE_16BIT define to more accurate ENABLE_RGB_COLORJody Northup
svn-id: r41696
2009-06-16Corrected oversight in earlier ifdef simplification which leads to ↵Jody Northup
compilation failure if ENABLE_16BIT is not defined. svn-id: r41581
2009-06-16Declared getBestFormat in OSystem base class, and implemented in SDL backend.Jody Northup
svn-id: r41580
2009-06-15Added kUnsupportedColorMode error code brought Scumm engine and SDL backend ↵Jody Northup
into compliance with API outlined in http://scummvmupthorn09.wordpress.com/2009/06/14/how-this-is-going-to-work/ Provided convenient Graphics::PixelFormat constructors for ColorMode enums, and bitformat integers. Removed last vestiges (I think) of initial cursor hack. svn-id: r41539
2009-06-13Fix erase() sometimes hiding other hash elements.Willem Jan Palenstijn
Like CPython, we now use a dummy node to mark nodes as erased, so that lookup() can skip over it. All tests should now pass again. svn-id: r41496
2009-06-13Fixed cursor code to keep track of cursor formats so that ThemeEngine and/or ↵Jody Northup
GuiManager cursors will render properly over the game (on spacebar hit, for instance) svn-id: r41491
2009-06-12Fixed disposeStream initialization.Nicola Mettifogo
svn-id: r41474
2009-06-12* Adapted Kyra to the new IFFParser interface.Nicola Mettifogo
* Adapted the new IFFParser to Kyra (slightly). The Kyra1 demo on the website works. svn-id: r41468
2009-06-12* Moved the updated IFF code from Parallaction to common/Nicola Mettifogo
* Updated Parallaction and SAGA to use the new decoder infrastructure. svn-id: r41465
2009-06-12Unfinished proof of concept regarding my compromise with LordHoto in IRC.Jody Northup
svn-id: r41464
2009-06-11Renamed Graphics::ColorFormat to Graphics::ColorMode, streamlined enum by ↵Jody Northup
removing order section and temporarily removing kFormatARGB1555 Converted cursor code to make use of _screenFormat, instead of a parameter passed directly to it by the engine. Adjusted scumm engine to account for these changes. This should probably have been two separate commits, but the changes concern the same files... svn-id: r41443
2009-06-10Point to the Cursor and AudioCD Managers to help engine authors following ↵Jordi Vilalta Prat
the right path. svn-id: r41433
2009-06-10Extend documentation for "kFeatureCursorHasPalette".Johannes Schickel
svn-id: r41430
2009-06-10Fix documentation for debugC and debugCN, relying on special debug levels.Johannes Schickel
svn-id: r41425
2009-06-10Added debugCN() call which does not add newline automaticallyEugene Sandulenko
svn-id: r41421
2009-06-10SDL backend now dynamically generates 8 or 16-bit color surface depending on ↵Jody Northup
engine request (using ad-hoc format). svn-id: r41416
2009-06-09Laying the foundation for preliminary bitdepth negotiation. (No ↵Jody Northup
functionality changes yet) svn-id: r41396
2009-06-08Spacing.Travis Howell
svn-id: r41375
2009-06-07Fixed appending a (substring of a) string to itselfMax Horn
svn-id: r41337
2009-06-07Added some new method variants to Common::StringMax Horn
svn-id: r41333
2009-06-07Added an experimental '--upgrade-targets' option (to be refined; and ↵Max Horn
possibly hooked to the GUI eventually). This updates the guioptions,platform and lang for all your targets (and with a source change, also the descriptions) svn-id: r41332
2009-06-06Added CoCo3 version of SQ1Eugene Sandulenko
svn-id: r41284
2009-06-06Added game GUI options to advancedDetector and updated all enginesEugene Sandulenko
svn-id: r41272
2009-06-06Implement feature request #1180217: "GUI: Mute option"Eugene Sandulenko
svn-id: r41233
2009-06-06Corrected cursor display errors introduced by revision 41204, reimplemented ↵Jody Northup
16-bit cursor support in a less hacky, but still temporary way. svn-id: r41209
2009-06-06Merged revisions ↵Travis Howell
41154-41156,41160,41163-41181,41185-41186,41188-41189,41196-41202 via svnmerge from https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk ........ r41154 | thebluegr | 2009-06-04 18:25:48 +1000 (Thu, 04 Jun 2009) | 1 line Turned debug_weak_validations on by default again, as apparently some games like SQ3 fail in some validations (e.g. when loading). Also, fixed a potential out of bounds access when copying the value of __FILE__ into a buffer (as its value can be quite long in some cases). ........ r41155 | thebluegr | 2009-06-04 18:28:20 +1000 (Thu, 04 Jun 2009) | 1 line Reordered the numpad keys so that they make more sense, and simplified the code which returns the values of shifted function keys ........ r41156 | djwillis | 2009-06-04 18:30:31 +1000 (Thu, 04 Jun 2009) | 1 line Initial import of the GP2XWiz backend (based on the GP2X and SDL backends). Includes configure changes and one #ifdef to SDL backend. Also updates NEWS. ........ r41160 | strangerke | 2009-06-04 19:48:56 +1000 (Thu, 04 Jun 2009) | 1 line gob : _spriteBottom incorrectly saved and restored in Draw_v2::spriteOperation ........ r41163 | fingolfin | 2009-06-04 21:28:05 +1000 (Thu, 04 Jun 2009) | 1 line SCI: Renamed various debug related global variables to have a g_ prefix; and moved any 'extern' decls of them into a new header file ........ r41164 | waltervn | 2009-06-04 21:35:17 +1000 (Thu, 04 Jun 2009) | 2 lines SCI: Support for 16-bit DPCM. ........ r41165 | fingolfin | 2009-06-04 21:44:55 +1000 (Thu, 04 Jun 2009) | 1 line SCI: cleanup ........ r41166 | fingolfin | 2009-06-04 21:45:17 +1000 (Thu, 04 Jun 2009) | 1 line SCI: Moved MemObject code into a separate source file ........ r41167 | fingolfin | 2009-06-04 21:45:34 +1000 (Thu, 04 Jun 2009) | 1 line Code formatting in the gp2xwiz backend ........ r41168 | thebluegr | 2009-06-04 22:47:11 +1000 (Thu, 04 Jun 2009) | 1 line Updated the MSVC project files of the SCI engine ........ r41169 | waltervn | 2009-06-05 00:29:20 +1000 (Fri, 05 Jun 2009) | 2 lines SCI: Message: Added support for escape sequences. ........ r41170 | waltervn | 2009-06-05 01:56:11 +1000 (Fri, 05 Jun 2009) | 2 lines SCI: Added support for early SCI1.1 audio maps. ........ r41171 | waltervn | 2009-06-05 02:18:35 +1000 (Fri, 05 Jun 2009) | 2 lines SCI: Audio: Fixed bug in reading of SOL header. ........ r41172 | fingolfin | 2009-06-05 06:50:51 +1000 (Fri, 05 Jun 2009) | 1 line SCI: Added FIXME comment to not_register() ........ r41173 | fingolfin | 2009-06-05 06:51:09 +1000 (Fri, 05 Jun 2009) | 1 line SCI: cleanup ........ r41174 | fingolfin | 2009-06-05 06:51:24 +1000 (Fri, 05 Jun 2009) | 1 line SCI: Slightly modified kAddAfter so that it does not modify its arguments needlessly ........ r41175 | fingolfin | 2009-06-05 06:51:40 +1000 (Fri, 05 Jun 2009) | 1 line SCI: Added MemObject::isValidOffset method; use it to simplify determine_reg_type ........ r41176 | fingolfin | 2009-06-05 07:42:24 +1000 (Fri, 05 Jun 2009) | 1 line SCI: Renamed _kfuncTable -> _kernelFuncs; and simplified/streamlined the kernel func map in kernel.cpp a bit ........ r41177 | fingolfin | 2009-06-05 07:44:39 +1000 (Fri, 05 Jun 2009) | 1 line SCI: Renamed EngineState::flags and version to _flags and _version (following our conventions); also slightly changed the EngineState constructor to init _version & _flags, and used this to make them constant ........ r41178 | fingolfin | 2009-06-05 07:53:45 +1000 (Fri, 05 Jun 2009) | 1 line oops ........ r41179 | athrxx | 2009-06-05 08:12:13 +1000 (Fri, 05 Jun 2009) | 1 line LOL: implemented Vaelan's cube ........ r41180 | fingolfin | 2009-06-05 08:16:31 +1000 (Fri, 05 Jun 2009) | 1 line SCI: Made some members of class Resource protected; some cleanup ........ r41181 | waltervn | 2009-06-05 09:55:08 +1000 (Fri, 05 Jun 2009) | 3 lines SCI: Fixed some endian bugs related to speech handling. READ_UINT* are not LE, but use native endianness. Thanks to clone2727 for pointing this out. ........ r41185 | Kirben | 2009-06-05 10:57:58 +1000 (Fri, 05 Jun 2009) | 1 line Update sound code in HE80+ games, for sound rate differences. ........ r41186 | waltervn | 2009-06-05 11:12:52 +1000 (Fri, 05 Jun 2009) | 2 lines SCI: Audio: Fixed bug in sample length computation. ........ r41188 | Kirben | 2009-06-05 12:35:38 +1000 (Fri, 05 Jun 2009) | 1 line Fix issues selecting some items in arttime and football. ........ r41189 | Kirben | 2009-06-05 14:16:32 +1000 (Fri, 05 Jun 2009) | 1 line Minor cleanup. ........ r41196 | dreammaster | 2009-06-05 22:20:42 +1000 (Fri, 05 Jun 2009) | 1 line Tweaks to the code that pauses for a mouse press when displaying many text messages ........ r41197 | thebluegr | 2009-06-06 04:05:45 +1000 (Sat, 06 Jun 2009) | 1 line Removed some unused code and performed some cleanup ........ r41198 | thebluegr | 2009-06-06 05:04:14 +1000 (Sat, 06 Jun 2009) | 1 line Moved some more debug commands to ScummVM's coneole and removed some unused code ........ r41199 | athrxx | 2009-06-06 07:34:18 +1000 (Sat, 06 Jun 2009) | 1 line LOL: implemented another opcode ........ r41200 | mthreepwood | 2009-06-06 08:35:13 +1000 (Sat, 06 Jun 2009) | 1 line Make the PlayStation's abbreviation to all lower-case for consistency and change the description from Playstation to Sony PlayStation ........ r41201 | athrxx | 2009-06-06 08:53:36 +1000 (Sat, 06 Jun 2009) | 1 line LOL: minor bug fix ........ r41202 | thebluegr | 2009-06-06 09:08:35 +1000 (Sat, 06 Jun 2009) | 1 line Cleanup ........ svn-id: r41206
2009-06-05Make the PlayStation's abbreviation to all lower-case for consistency and ↵Matthew Hoops
change the description from Playstation to Sony PlayStation svn-id: r41200
2009-06-05Corrected backend to be able to accept a 16-bit mouseKeyColor without overflowJody Northup
svn-id: r41194
2009-06-01Add a 'flat' option to FSDirectory to allow searching recursively for files ↵Willem Jan Palenstijn
in subdirectories svn-id: r41090
2009-05-31Document that debug level 11 turns on all special debug level messages ↵Filippos Karapetis
(refer to rev. #28858) svn-id: r41076
2009-05-29Changed SaveFileManager methods to take Common::String params (instead of ↵Max Horn
char pointers) svn-id: r41000
2009-05-26Renamed Common::Serializer::syncMagic to matchBytes, and added version ↵Max Horn
paarms to it (we migh want to add corresponding matchUint32LE etc. functions if needed) svn-id: r40909
2009-05-26Fixed a bug in Common::Array (including a unit test for it), and changed the ↵Max Horn
way the internal storage growth over time. The bug could result in incorrect results when using push_back (or insert_at) to insert data from an array into itself if this insertions would cause the internal array storage to grow. Also added a unit test for this bug. Furthermore, if the internal storage needs to grow, it will now be resized to the next power of two, instead of being increased by 32. svn-id: r40907
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-05-19COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are ↵Max Horn
deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses) svn-id: r40725
2009-05-19Improved Common::Serializer in several ways:Max Horn
* Added support versioned serialization * Added a convenience API for handling 'magic IDs' transparently * Exposed the err()/clearErr() methods of the underlying streams * Added a basic unit test for versioned loading (more should be added, in particular for saving) * Removed the syncString(char *, uint16) alias for syncBytes(byte *buf, uint32 size) svn-id: r40723
2009-05-18Typo.Johannes Schickel
svn-id: r40693
2009-05-12Allow creation of KeyState with zero ascii value.Eugene Sandulenko
svn-id: r40501
2009-05-12Add more detailed error message for "Chunk overread" case.Johannes Schickel
svn-id: r40493