aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx
AgeCommit message (Collapse)Author
2011-01-28SWORD25: Removed some more unused/unimplemented debug codeFilippos Karapetis
svn-id: r55595
2011-01-28SWORD25: Disabled the mechanism which precaches all of the game's resources ↵Filippos Karapetis
on startup. This reduced the initial memory used by 100MB for me, though the game keeps allocating new resources in each scene without deleting them, because of the missing functionality in getUsedMemory(). This change also slightly reduces the loading time on game startup. svn-id: r55593
2011-01-24SWORD25: Fix some invalid writes / crashesSven Hesse
On my system, sizeof(png_uint_32) == 8, while sizeof(int) == 4. svn-id: r55504
2011-01-24SWORD25: CleanupFilippos Karapetis
svn-id: r55501
2011-01-24SWORD25: Fix linker breakage from DECLARE_SINGLETON() in renderObjectRegistry.h.David Turner
svn-id: r55490
2011-01-24SWORD25: Documented a FIXMEFilippos Karapetis
svn-id: r55489
2011-01-24SWORD25: Removed the logErrorLn and logWarningLn wrappersFilippos Karapetis
svn-id: r55488
2011-01-23SWORD25: Fix GCC Compilation Warnings.David Turner
svn-id: r55482
2011-01-23SWORD25: Fix format string warnings.Torbjörn Andersson
svn-id: r55465
2011-01-23SWORD25: Replaced BS_ASSERT() with assert()Filippos Karapetis
svn-id: r55464
2011-01-23SWORD25: Removed the custom log class and replaced it with ↵Filippos Karapetis
warning/error/debugC calls svn-id: r55462
2011-01-16SWORD25: Fix main menu button text colourTorbjö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-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-17ENGINES: Change 'colour' to 'color'Max Horn
Only changed this in engines where 'color' was/is already used almost exclusively svn-id: r54288
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
This makes it possible to write DECLARE_SINGLETON(foo); instead of DECLARE_SINGLETON(foo) without causing a warning about an extra semicolon. The extra semicolon helps some editors at parsing the C++ code. svn-id: r54258
2010-11-03SWORD25: cleanupMax Horn
svn-id: r54045
2010-11-02SWORD25: Convert printf to debugNMax Horn
svn-id: r54040
2010-11-01SWORD25: Replace art_warn/art_die by warning/errorMax Horn
svn-id: r54002
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax 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-28SWORD25: Start to rename read/write methods of *PersistenceBlock classesMax Horn
All should be renamed to reduce risk of accidental incorrect use. svn-id: r53899
2010-10-28SWORD25: Get rid of CallbackRegistryMax Horn
svn-id: r53898
2010-10-25SWORD25: Disable script triggered screenshotsMax Horn
svn-id: r53840
2010-10-25SWORD25: Get rid of most of the 'kernel service/superclass' codeMax Horn
svn-id: r53835
2010-10-24SWORD25: Get rid of kernel/string.hMax Horn
svn-id: r53758
2010-10-24SWORD25: Simplify & optimize PNG reading codeMax 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-24SWORD25: Get rid of colorFormat parameter in PNGLoader APIMax Horn
Only CF_ARGB32 was supported anyway. svn-id: r53756
2010-10-24SWORD25: Merge classes PNGLoader, ImageLoader and ImageLoaderManagerMax 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-24SWORD25: Merge B25SLoader into PNGLoaderMax Horn
svn-id: r53754
2010-10-24SWORD25: Add ImageLoaderManager, get rid of last globally constructed objectMax Horn
This also gets rid of an evil use of atexit. svn-id: r53753
2010-10-24SWORD25: Remove outdated commentsMax Horn
svn-id: r53752
2010-10-23SWORD25: Register LUA callbacks insider registerScriptBindings() methodsMax Horn
Previously, the constructor of an anonymous global object was used to do this, for no apparent reason. However, maybe there was a hidden reason which I missed, so this change might cause regressions. I.e., please test. svn-id: r53735
2010-10-23SWORD25: Get rid of global SharedPtr instancesMax Horn
svn-id: r53734
2010-10-20SWORD25: Added description field to savegamesPaul 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-19SWORD25: Enforced code formatting rules in rest of the engineEugene Sandulenko
svn-id: r53626
2010-10-19SWORD25: Enforce code naming conventions in gfx/*Eugene Sandulenko
svn-id: r53625
2010-10-19SWORD25: Enforce code naming conventions in gfx/image/imageloader*Eugene Sandulenko
svn-id: r53623
2010-10-19SWORD25: Fix engine exit when running without theoradecEugene Sandulenko
svn-id: r53622
2010-10-19SWORD25: Enforce code naming conventions in gfx/graphicengine*Eugene Sandulenko
svn-id: r53621
2010-10-19SWORD25: Properly implement GraphicEngine::fill()Eugene Sandulenko
Now all transitions and dimming out screen at exit dialog is supported. svn-id: r53620
2010-10-19SWORD25: Fix for Valgrind identified memory leakPaul Gilbert
svn-id: r53611
2010-10-18SWORD25: Renamed Lua .c files to .cpp and make it compilableEugene Sandulenko
svn-id: r53568
2010-10-18SWORD25: Fix Valgrind reported uninitialised errorsPaul Gilbert
svn-id: r53565
2010-10-18SWORD25: Fix for Valgrind identified errorsPaul Gilbert
svn-id: r53563
2010-10-15COMMON: Add XMLParser::parseIntegerKey variant accepting a Common::StringMax Horn
Almost all places where we used XMLParser::parseIntegerKey were using it like this: XMLParser::parseIntegerKey(str.c_str(), ...) Since this makes the code harder to read, I overloaded the method to also accept Commmon::String directly. Also removed all .c_str() invocations where necessary. svn-id: r53479
2010-10-15SWORD25: Typo, cleanupMax Horn
svn-id: r53478
2010-10-15SWORD25: Do not use Kernel::GetService directly anymoreMax Horn
svn-id: r53477
2010-10-15SWORD25: Adapted a few things to our code formatting conventions; translated ↵Max Horn
rest of graphicengine.h to german svn-id: r53476
2010-10-15SWORD25: Fix a few global constructor warningsMax Horn
svn-id: r53475
2010-10-13SWORD25: Get rid of (deprecated) access to libpng io_ptrMax Horn
Unfortunately I cannot test this, so watch our for regressions. svn-id: r53451
2010-10-13SWORD25: Fix empty loop body & conversion warningsMax Horn
svn-id: r53450