Commit Graph
39 Commits
Author SHA1 Message Date
Torbjörn Andersson d38c86fec0 SHEROCK: Fix slowdown in Serrated Scalpel intro (#13198)
This was a regression from fixing bug #13101. The resource stream was
created for every frame that was decoded, and apparently each frame of
the intro is made up of lots of little frame.

Normally this wasn't much of a problem, but when using the smaller
installation offered by some versions, each such decoded frame caused
the entire resource file to be decompressed. This slowed things down a
lot.

Now the stream is kept alive throughout, so that the file is only
decompressed once. Note that this is only necessary when creating the
ImageFile object from a filename. When it's created from a stream,
frames are still decoded in advance the old way, so there is no need for
the class to have its own stream. At least that's how it works now.
2022-01-08 13:55:52 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Torbjörn Andersson 046e39428b SHERLOCK: Load frames on demand when possible
This fixes bug #13101, since it no longer tries to decode
catastrophically bad frames. (Some bad frames will still be used, but
that's survivable.)
2021-11-29 20:10:46 -08:00
Orgad Shaneh 1296eb0c2a SHERLOCK: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Eugene Sandulenko 7e82e748bf SHERLOCK: Fix shadowing warning 2018-06-29 09:37:27 +02:00
Eugene Sandulenko 19e3e229b6 SHERLOCK: Fix warning 2018-06-29 09:14:17 +02:00
Adrian Frühwirth 9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +02:00
Eugene Sandulenko cbb403ff55 SHERLOCK: Remove non-virtual destructor which prevents the superclass one from execution. 2016-05-16 16:56:57 +02:00
Paul Gilbert 331a9f4969 SHERLOCK: SS: Fix crash on invalid graphics in German version 2016-02-04 18:47:08 -05:00
Paul Gilbert d4774d1cb2 SHERLOCK: RT: Fix crash skipping intro when anim is active 2015-10-16 19:36:23 -04:00
Paul Gilbert 404076dcbe SHERLOCK: RT: Fix frame memory leak in StreamingImageFile 2015-10-11 16:51:49 -04:00
Torbjörn Andersson 3fa3a7197a SHERLOCK: Remove unnecessary indentation level 2015-09-27 17:05:16 +02:00
Paul Gilbert b6c996bf9d SHERLOCK: RT: Fix getting image offsets on unscaled images 2015-08-23 10:23:59 -04:00
Paul Gilbert 1659e357c2 SHERLOCK: RT: Cleanup of sDrawXOffset & sDrawYOffset 2015-08-22 18:12:31 -04:00
Paul Gilbert d5af7b73ec SHERLOCK: RT: Fix drawing last frame of animations 2015-08-09 08:08:03 -04:00
Paul Gilbert 5629410576 SHERLOCK: Fix compiler warnings 2015-07-12 23:09:38 -04:00
Filippos Karapetis 7a7c2ad61e SHERLOCK: Use IS_ROSE_TATTOO / IS_SERRATED_SCALPEL in more places 2015-07-04 00:42:25 +03:00
Paul Gilbert e2803d77c6 SHERLOCK: RT: Fix compiler warnings 2015-06-30 20:20:42 -04:00
Paul Gilbert e4b4fd0493 SHERLOCK: RT: Fix Coverity problems 2015-06-29 19:43:44 -04:00
Paul Gilbert 7594507277 SHERLOCK: RT: Properly implement StreamingImageFile class 2015-06-27 19:23:42 -04:00
Martin Kiewitz 662732acd7 SHERLOCK: 3DO: animation loader: verify data 2015-06-16 00:15:15 +02:00
Martin Kiewitz 668b8d827e SHERLOCK: 3DO: celroomdata loader: verify data 2015-06-15 23:58:58 +02:00
Martin Kiewitz a7e73e5785 SHERLOCK: improve image palette detection
fixes German+Spanish menu bars. The first menu bar of those versions
is the exact same size as a palette.
2015-06-14 11:49:32 +02:00
Martin Kiewitz cacf8fbcb0 SHERLOCK: 3DO: add checks to ccb header reading
verify that height+width from PRE0/PRE1 are correct
security check
2015-06-13 17:18:59 +02:00
Martin Kiewitz 9c59dc8c8d SHERLOCK: 3DO: implement map support + cel 8-bit
added PLUT shading
2015-06-13 16:29:21 +02:00
Martin Kiewitz b5a4f622c2 SHERLOCK: 3DO: support for cAnim data (startCAnim)
it's now possible to leave the first room

Conflicts:
	engines/sherlock/objects.cpp
2015-06-13 10:18:46 +02:00
Strangerke 5887d92d17 SHERLOCK: Reduce the scope of some variables, add a couple of CHECKMEs 2015-06-13 08:07:34 +02:00
Martin Kiewitz 8d385f300e SHERLOCK: 3DO: implement offX/Y for cel room data
fixes graphical glitches when watson sits down
2015-06-12 23:34:32 +02:00
Martin Kiewitz fd14f53a3b SHERLOCK: 3DO: font support: free memory 2015-06-12 23:14:11 +02:00
Martin Kiewitz 132f33a306 SHERLOCK: 3DO: font support
not perfect yet because 3DO has built-in anti-aliasing
and it seems the fonts were designed with this in mind
2015-06-12 23:12:42 +02:00
Martin Kiewitz 765dbe647c SHERLOCK: 3DO: some work on font file loading 2015-06-12 21:26:24 +02:00
Martin Kiewitz 4858adb72d SHERLOCK: 3DO: mouse cursor support 2015-06-12 18:33:23 +02:00
Martin Kiewitz 3cca918ec7 SHERLOCK: 3DO: fix multiple frame decoding
when multiple frames were decoded, all but the last one were
free()d
2015-06-12 13:25:08 +02:00
Martin Kiewitz 16b65badc0 SHERLOCK: 3DO: cel decoder change 2015-06-12 01:06:19 +02:00
Torbjörn Andersson 8d62faf619 SHERLOCK: Fix two Valgrind warnings in the 3DO image decoder
The 3DO Serrated Scalpel intro now runs without any Valgrind
warnings, up to the point where it should be showing the credits.
2015-06-12 00:17:24 +02:00
Martin Kiewitz 9ce2cbca9f SHERLOCK: 3DO: support images inside room files 2015-06-11 22:11:24 +02:00
Martin Kiewitz 7ff3336a65 SHERLOCK: 3DO: load walk.anim for player 2015-06-11 21:30:32 +02:00
Torbjörn Andersson d6ca620a7c SHERLOCK: Remove unnecessary semicolon. 2015-06-11 18:21:19 +02:00
Paul Gilbert dd1781a3f2 SHERLOCK: Split up image file classes into their own file 2015-06-10 19:58:04 -04:00