Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-06-30 | JANITORIAL: Silence a couple of "variable set but not used" warnings. | eriktorbjorn | |
2011-06-29 | SWORD25: Implement persistence functions for soundengine | Eugene Sandulenko | |
Now sound is properly saved/restored. Implemented savegame versioning. Compatibility with old saves pertained. | |||
2011-06-23 | SWORD25: Add error checks after allocating memory with malloc | Julien | |
2011-06-23 | ANALYSIS: Fix potential memory leak when using realloc | Julien | |
When reallocation is unsuccessful, the passed buffer is not freed. In this case, assigning the result (NULL) will result in a leak of the original memory buffer. See http://msdn.microsoft.com/en-us/library/kkedhy7c.aspx | |||
2011-06-20 | ALL: Remove trailing whitespaces | Max Horn | |
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-17 | SWORD25: Fix image blending for black | Eugene Sandulenko | |
This fixes exit menu. | |||
2011-05-26 | SWORD25: Merged the PNG and thumbnail decoding code into a common class | md5 | |
2011-05-26 | SWORD25: Removed the leftover libpng code | md5 | |
2011-05-23 | SWORD25: De-hardcode target name in thumbnail code | Alyssa Milburn | |
This just uses the provided filename rather than trying to recreate it with a hard-coded target (causing crashes with other targets). (Also, add an error check rather then crashing there, just in case.) | |||
2011-05-13 | SWORD25: Added a version field for savegame thumbnails | md5 | |
2011-05-13 | SWORD25: Replaced the PNG thumbnail encoding code, used in saved games | md5 | |
- Savegame thumbnails are now created using a flat image format, instead of PNG. This allows us to remove the PNG encoding code used in the engine. Note that the saved games we create cannot be used with the original engine anyway, so this change does not break savegame compatibility with the original game (it's already broken). - Compatibility is preserved with older saved games that were made with ScummVM. - Moved the embedded thumbnail reading code out of the PNG loader class, to stop it from needlessly checking every PNG file. - With this change, libpng is no longer required for the sword25 engine | |||
2011-05-12 | GIT: Clean up: Suppress SVN tags, now useless | strangerke | |
2011-05-05 | SWORD25: Disabled code which isn't necessary with our PNG decoder | md5 | |
2011-05-05 | SWORD25: Moved the thumbnail handling code to its appropriate place | md5 | |
PNGLoader is able to load images embedded in saved games already. This helps remove some duplicate code | |||
2011-04-17 | ALL/GRAPHICS: Remove Surface::bytesPerPixel. | Johannes Schickel | |
2011-04-17 | SWORD25: Prefer Surface::format over Surface::bytesPerPixel. | Johannes Schickel | |
2011-04-17 | SWORD25: Prefer Surface::create taking a PixelFormat over the one taking a ↵ | Johannes Schickel | |
byte depth. I am not 100% sure whether the surfaces all use the same format as the screen, but a quick test showed that it still works fine. In case this is wrong please set them up with the correct format. | |||
2011-04-14 | SWORD25: Silly whitespace fix. | Alyssa Milburn | |
2011-04-14 | SWORD25: Fix rendering on big-endian. | Alyssa Milburn | |
2011-03-25 | SWORD25: more translated comments from gfx/image (patch #3238507) | Max Horn | |
Plus some extra white space changes by myself. | |||
2011-03-24 | SWORD25: Commit submitted patch of German comments translated to English | Paul Gilbert | |
2011-03-23 | SWORD25: Commit of patch translating German comments to English | Paul Gilbert | |
2011-03-18 | SWORD25: C++ify some code, remove obsolete stuff | Max Horn | |
2011-02-02 | GRAPHICS: Implemented a PNG decoder, and set it as default for the sword25 ↵ | Filippos Karapetis | |
engine libpng is still needed for PNG encoding (for thumbnails in saved games of sword25), but since we'll probably drop support for the original saved games anyway, the PNG encoding code will ultimately be removed svn-id: r55723 | |||
2011-01-30 | SWORD25: Added alternative code for video frame blitting (currently disabled) | Filippos Karapetis | |
svn-id: r55664 | |||
2011-01-24 | SWORD25: Fix some invalid writes / crashes | Sven Hesse | |
On my system, sizeof(png_uint_32) == 8, while sizeof(int) == 4. svn-id: r55504 | |||
2011-01-23 | SWORD25: Replaced BS_ASSERT() with assert() | Filippos Karapetis | |
svn-id: r55464 | |||
2011-01-23 | SWORD25: Removed the custom log class and replaced it with ↵ | Filippos Karapetis | |
warning/error/debugC calls svn-id: r55462 | |||
2011-01-16 | SWORD25: Fix main menu button text colour | Torbjörn Andersson | |
In the other cases I've found in the code, the colour components are stored in the order B, G, R and A. Assume that's the case here too. I hope that is correct. It doesn't seem to break anything obvious. svn-id: r55255 | |||
2010-11-19 | COMMON: Split common/stream.h into several headers | Max Horn | |
svn-id: r54385 | |||
2010-11-03 | SWORD25: cleanup | Max Horn | |
svn-id: r54045 | |||
2010-11-02 | SWORD25: Convert printf to debugN | Max Horn | |
svn-id: r54040 | |||
2010-11-01 | SWORD25: Replace art_warn/art_die by warning/error | Max Horn | |
svn-id: r54002 | |||
2010-10-30 | ALL: Add code to help stop people from accidentally using "bad" APIs | Max Horn | |
A new header file common/forbidden.h is included by scummsys.h and it re-#defines numerous symbols like fopen(), fread(), system(), etc. with garbage, in order to provoke compile errors in any code using them. If a .cpp file really *must* use any of these (e.g. because it is a backend file), then these redefinitions can be disabled by #defining FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever this is done, an explanatory comment should be added. Note that this system cannot catch all "bad" usages (notably the Lua code in the sword25 engine), as it can only work if scummsys.h is included. svn-id: r53961 | |||
2010-10-24 | SWORD25: Simplify & optimize PNG reading code | Max Horn | |
The interlaced part is untested since I do not know any place in the game where interlaced data is used. svn-id: r53757 | |||
2010-10-24 | SWORD25: Get rid of colorFormat parameter in PNGLoader API | Max Horn | |
Only CF_ARGB32 was supported anyway. svn-id: r53756 | |||
2010-10-24 | SWORD25: Merge classes PNGLoader, ImageLoader and ImageLoaderManager | Max Horn | |
This looses some flexibility when it comes to supporting other image formats. But since the game does not use other image formats, this seems rather irrelevant, compared to how much simpler the code now is. svn-id: r53755 | |||
2010-10-24 | SWORD25: Merge B25SLoader into PNGLoader | Max Horn | |
svn-id: r53754 | |||
2010-10-24 | SWORD25: Add ImageLoaderManager, get rid of last globally constructed object | Max Horn | |
This also gets rid of an evil use of atexit. svn-id: r53753 | |||
2010-10-20 | SWORD25: Added description field to savegames | Paul Gilbert | |
This stores the date and time of when the game was saved, since ScummVM doesn't support getting a file's age like the original engine did. svn-id: r53638 | |||
2010-10-19 | SWORD25: Enforced code formatting rules in rest of the engine | Eugene Sandulenko | |
svn-id: r53626 | |||
2010-10-19 | SWORD25: Enforce code naming conventions in gfx/image/imageloader* | Eugene Sandulenko | |
svn-id: r53623 | |||
2010-10-19 | SWORD25: Enforce code naming conventions in gfx/graphicengine* | Eugene Sandulenko | |
svn-id: r53621 | |||
2010-10-19 | SWORD25: Fix for Valgrind identified memory leak | Paul Gilbert | |
svn-id: r53611 | |||
2010-10-18 | SWORD25: Fix for Valgrind identified errors | Paul Gilbert | |
svn-id: r53563 | |||
2010-10-15 | SWORD25: Do not use Kernel::GetService directly anymore | Max Horn | |
svn-id: r53477 | |||
2010-10-13 | SWORD25: Get rid of (deprecated) access to libpng io_ptr | Max Horn | |
Unfortunately I cannot test this, so watch our for regressions. svn-id: r53451 | |||
2010-10-13 | SWORD25: Fix empty loop body & conversion warnings | Max Horn | |
svn-id: r53450 | |||
2010-10-13 | SWORD25: Semi-colon cleanup. | Johannes Schickel | |
svn-id: r53446 | |||
2010-10-13 | SWORD25: Silenced MSVC false positive about a potentially uninitialized variable | Filippos Karapetis | |
svn-id: r53412 |