Commit Graph

214 Commits

Author SHA1 Message Date
Max Horn
a6e5b97e9f COMMON: Remove vfprintf call from XML parser 2011-06-06 11:19:09 +02:00
Max Horn
ac1c2124e5 SWORD25: Remove redundant bounds check 2011-06-06 11:19:07 +02:00
Max Horn
9c86e1a0a8 SWORD25: Fix whitespace 2011-06-06 11:19:07 +02:00
md5
62c026d3b6 SWORD25: Merged the PNG and thumbnail decoding code into a common class 2011-05-26 12:29:51 +03:00
md5
d5050463d5 SWORD25: Removed the leftover libpng code 2011-05-26 11:46:42 +03:00
Matthew Hoops
9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
Max Horn
55e7ef1e08 SWORD25: Remove obsolete FORBIDDEN_SYMBOL_ALLOW_ALL defines 2011-05-23 19:48:14 +02:00
Alyssa Milburn
f1a7ec7117 SWORD25: Fix screenshot endianism issue 2011-05-23 12:12:26 +02:00
Alyssa Milburn
9983231294 SWORD25: De-hardcode target name in thumbnail code
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-23 11:55:34 +02:00
md5
b3bc35c62a SWORD25: Added a version field for savegame thumbnails 2011-05-13 19:19:58 +03:00
md5
3ec466853a SWORD25: Replaced the PNG thumbnail encoding code, used in saved games
- 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-13 18:49:14 +03:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
md5
f20c8b963a SWORD25: Disabled code which isn't necessary with our PNG decoder 2011-05-05 22:12:38 +03:00
md5
d7334628bd SWORD25: Moved the thumbnail handling code to its appropriate place
PNGLoader is able to load images embedded in saved games already. This
helps remove some duplicate code
2011-05-05 22:03:15 +03:00
md5
2af3759a78 SWORD25: Fixed the thumbnail creation code, and removed a hack 2011-05-05 20:13:06 +03:00
md5
921030f4ef SWORD25: Initial code for showing savegame thumbnails
There is currently a bug and only the thumbnail of the first save slot is
shown
2011-05-05 18:33:22 +03:00
md5
9abc42019a SWORD25: Remove unused code 2011-05-05 12:54:31 +03:00
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
da734a4af0 ALL/GRAPHICS: Remove Surface::bytesPerPixel. 2011-04-17 21:27:34 +02:00
Johannes Schickel
c3669443ec SWORD25: Prefer Surface::format over Surface::bytesPerPixel. 2011-04-17 20:58:07 +02:00
Johannes Schickel
b3f0eb8a9d SWORD25: Prefer Surface::create taking a PixelFormat over the one taking a 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-17 16:31:49 +02:00
Alyssa Milburn
eef6c5dd90 SWORD25: Silly whitespace fix. 2011-04-14 23:02:18 +02:00
Alyssa Milburn
8305f9c2a0 SWORD25: Simplify text rendering code slightly. 2011-04-14 21:08:52 +02:00
Alyssa Milburn
6ecc460b41 SWORD25: Fix rendering on big-endian. 2011-04-14 21:06:06 +02:00
Max Horn
bb6a5c3685 SWORD25: more translated comments from gfx/image (patch #3238507)
Plus some extra white space changes by myself.
2011-03-25 15:00:41 +01:00
Paul Gilbert
b3471354d0 SWORD25: Commit submitted patch of German comments translated to English 2011-03-24 20:48:58 +11:00
Paul Gilbert
649a5adb10 SWORD25: Commit of patch translating German comments to English 2011-03-23 22:25:33 +11:00
Max Horn
bf4dc80419 SWORD25: Reduce code duplication; formatting 2011-03-21 14:36:25 +01:00
Max Horn
5ee5dd76f5 SWORD25: C++ify some code, remove obsolete stuff 2011-03-18 14:43:52 +01:00
Filippos Karapetis
832cfddf34 SWORD25: Cache related changes
- Increase the resource cache limits
- Added a check before forcing resources to be freed
- Only force free image and animation resources, with a warning. It seems like there is
a bug in the resource reference code and several bitmap resources are not freed - added
a FIXME
- Clarify that initializeAnimationResource() is used with XML resources

svn-id: r55736
2011-02-02 19:32:04 +00:00
Filippos Karapetis
a86cb87b98 GRAPHICS: Implemented a PNG decoder, and set it as default for the sword25 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-02-02 15:43:45 +00:00
Filippos Karapetis
b7362876dd SWORD25: Disabled the video save/load code, and made it error out instead.
Videos are never saved or loaded, thus when this happens, it probably indicates a game bug
or a corrupted saved game

svn-id: r55667
2011-01-30 21:00:23 +00:00
Filippos Karapetis
9d6e398e74 SWORD25: Added alternative code for video frame blitting (currently disabled)
svn-id: r55664
2011-01-30 20:36:17 +00:00
Filippos Karapetis
2e42c2d11d SWORD25: Some translations, and a bugfix. Disabled a hack.
Translated some comments, and pushed the indirect rendering define to the header
file, so that the engine won't try and update the screen with direct movie rendering.
Also, the thumbnail hack has been disabled, as it doesn't really work (at least not for
me: all the thumbnails are gray)

svn-id: r55663
2011-01-30 20:34:47 +00:00
Filippos Karapetis
1da472a2db SWORD25: Translated some comments, and removed some superfluous ones
svn-id: r55613
2011-01-29 10:56:34 +00:00
Filippos Karapetis
42670975ac SWORD25: Removed a lot of debug/unimplemented/unused functions
svn-id: r55600
2011-01-28 20:52:52 +00:00
Filippos Karapetis
eb59444d1e SWORD25: Removed some now unused variables
svn-id: r55596
2011-01-28 17:03:15 +00:00
Filippos Karapetis
7ed5a92823 SWORD25: Removed some more unused/unimplemented debug code
svn-id: r55595
2011-01-28 17:02:02 +00:00
Filippos Karapetis
a2f9600179 SWORD25: Disabled the mechanism which precaches all of the game's resources 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-28 16:13:12 +00:00
Sven Hesse
ffb3de5bc0 SWORD25: Fix some invalid writes / crashes
On my system, sizeof(png_uint_32) == 8, while sizeof(int) == 4.

svn-id: r55504
2011-01-24 14:59:21 +00:00
Filippos Karapetis
6dc0999c6d SWORD25: Cleanup
svn-id: r55501
2011-01-24 14:00:55 +00:00
David Turner
9961e054d0 SWORD25: Fix linker breakage from DECLARE_SINGLETON() in renderObjectRegistry.h.
svn-id: r55490
2011-01-24 00:46:06 +00:00
Filippos Karapetis
092da73929 SWORD25: Documented a FIXME
svn-id: r55489
2011-01-24 00:04:32 +00:00
Filippos Karapetis
1f1cb1f140 SWORD25: Removed the logErrorLn and logWarningLn wrappers
svn-id: r55488
2011-01-24 00:03:09 +00:00
David Turner
2c2ef3973a SWORD25: Fix GCC Compilation Warnings.
svn-id: r55482
2011-01-23 20:51:16 +00:00
Torbjörn Andersson
806defa98e SWORD25: Fix format string warnings.
svn-id: r55465
2011-01-23 15:07:46 +00:00
Filippos Karapetis
1250785822 SWORD25: Replaced BS_ASSERT() with assert()
svn-id: r55464
2011-01-23 15:01:24 +00:00
Filippos Karapetis
00a0f8d15d SWORD25: Removed the custom log class and replaced it with warning/error/debugC calls
svn-id: r55462
2011-01-23 14:49:50 +00:00
Torbjörn Andersson
da42014402 SWORD25: Fix main menu button text colour
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
2011-01-16 08:15:47 +00:00