Johannes Schickel
184ae49302
SWORD25: Plug memory leak in RenderedImage.
2015-12-14 05:08:05 +01:00
Johannes Schickel
74321fcd22
SWORD25: Let ImgLoader write into Graphics::Surface.
2015-12-14 05:08:05 +01:00
Eugene Sandulenko
5da1a45307
SWORD25: Fix sprite flipping
2014-06-24 00:48:52 +03:00
Eugene Sandulenko
5c706dde27
SWORD25: Switch to common TransparentSurface
2014-06-15 15:43:25 +03:00
Johannes Schickel
bad7cdd3a6
SWORD25: Make GPL headers consistent in themselves.
2014-02-18 02:39:38 +01:00
Willem Jan Palenstijn
4591bd6eb6
SWORD25: Fix alpha/colormod blitting
...
This is a backport to sword25 of the wintermute commits
e9cbda135b and 2141ad285e
Thanks to eriktorbjorn for noticing and testing.
2013-09-29 20:18:54 +02:00
Johannes Schickel
eb22417639
SWORD25: Do not set Surface::pixels directly anymore.
2013-08-03 04:14:08 +02:00
Johannes Schickel
1550e9804b
SWORD25: Take advantage of Surface::getPixels.
2013-08-03 04:02:52 +02:00
Johannes Schickel
5afa6f97f4
SWORD25: Prefer getBasePtr over direct Surface::pixels access.
2013-08-03 02:52:33 +02:00
Sven Hesse
989ea7cb56
JANITORIAL: Remove trailing whitespace
2013-07-14 19:01:47 +02:00
Eugene Sandulenko
f59512c47e
RECORDER: Implement Events Recorder
2013-05-17 00:18:09 +03:00
johndoe123
4fc57dac8f
SWORD25: Fix blitting code
...
- Rename collectRenderQueue to preRender
- Only do forceRefresh() in Panel::setColor() and Text::setText() if the new values are different
- Move child object resorting from RenderObject::render() into RenderObject::preRender()
2013-04-20 00:34:32 +02:00
johndoe123
0a0b2f397b
SWORD25: Optimize graphics drawing code
2013-04-17 12:41:49 +02:00
Johannes Schickel
5f65cf9679
SWORD25: Get rid of casts on OSystem::copyRectToScreen calls.
2012-06-16 02:39:00 +02:00
Johannes Schickel
61795739f8
COMMON: Rename Common::set_to to Common::fill.
...
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Eugene Sandulenko
15a16e556c
SWORD25: Implement persistence functions for soundengine
...
Now sound is properly saved/restored. Implemented savegame versioning.
Compatibility with old saves pertained.
2011-06-29 17:16:25 +03:00
Eugene Sandulenko
f090eb6727
SWORD25: Fix image blending for black
...
This fixes exit menu.
2011-06-17 01:17:25 +03: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
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
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
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
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
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
Max Horn
0c018bf392
SWORD25: cleanup
...
svn-id: r54045
2010-11-03 00:19:28 +00:00
Max Horn
4d6fb4e768
SWORD25: Get rid of colorFormat parameter in PNGLoader API
...
Only CF_ARGB32 was supported anyway.
svn-id: r53756
2010-10-24 01:32:52 +00:00
Max Horn
7cc8811a5c
SWORD25: Merge classes PNGLoader, ImageLoader and ImageLoaderManager
...
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 01:32:15 +00:00
Max Horn
85e3ddc309
SWORD25: Add ImageLoaderManager, get rid of last globally constructed object
...
This also gets rid of an evil use of atexit.
svn-id: r53753
2010-10-24 01:30:53 +00:00
Eugene Sandulenko
6629efc676
SWORD25: Enforced code formatting rules in rest of the engine
...
svn-id: r53626
2010-10-19 21:03:33 +00:00
Eugene Sandulenko
f3becaddf1
SWORD25: Enforce code naming conventions in gfx/image/imageloader*
...
svn-id: r53623
2010-10-19 20:52:47 +00:00
Max Horn
550073ee04
SWORD25: Do not use Kernel::GetService directly anymore
...
svn-id: r53477
2010-10-15 12:18:19 +00:00
Eugene Sandulenko
8582c1ad57
SWORD25: Enforse code naming conventions in PackageManager and Sword25Engine
...
svn-id: r53380
2010-10-13 00:02:51 +00:00
Eugene Sandulenko
7c1b37e150
SWORD25: Fix transparency effects
...
svn-id: r53375
2010-10-13 00:00:20 +00:00
Eugene Sandulenko
e975cc057d
SWORD25: Rename GLImage to RenderedImage
...
svn-id: r53361
2010-10-12 23:54:07 +00:00
Eugene Sandulenko
cd453b3d01
SWORD25: Rename glimage.* to renderedimage.*
...
svn-id: r53360
2010-10-12 23:53:41 +00:00