Littleboy
33c3e19cea
LASTEXPRESS: Implement item selection and scene loading
2011-05-10 19:18:32 -04:00
Littleboy
2bc865f01a
LASTEXPRESS: Implement highlight of inventory items
2011-05-10 19:18:30 -04:00
Littleboy
8d4622d70d
LASTEXPRESS: Draw portrait non-highlighted in Inventory::show()
2011-05-10 19:18:29 -04:00
Littleboy
3088acf69a
LASTEXPRESS: Add button pressed state for inventory handling
2011-05-10 19:18:26 -04:00
Littleboy
1516ba7367
LASTEXPRESS: Implement skeleton code for selected item and inventory selection
2011-05-10 19:18:22 -04: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
Ori Avtalion
cd6ee0589d
JANITORIAL: Format forward declarations to follow convention
2011-04-28 12:20:34 +03:00
Matthew Hoops
9d8874c707
AUDIO: Cleanup MS IMA handling
...
- Split The Last Express' ADPCM to the engine. Using the MS IMA routine was really a hack.
- Fixed stereo MS IMA ADPCM, the old routine was completely wrong.
2011-04-24 23:14:14 -04:00
Johannes Schickel
14d4964001
LASTEXPRESS: Use RGB555 PixelFormat for surfaces instead of screen format.
...
This makes the code a bit more readable, thanks to fuzzie for pointing that
out.
2011-04-17 22:17:09 +02:00
Johannes Schickel
6d1d31d0f9
LASTEXPRESS: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
...
I am not sure whether the engine really uses only surfaces with the exat same
format as the screen. The engine maintainer should review this commit and fix
it in case the surfaces use a different pixel format.
2011-04-17 16:28:05 +02:00
Littleboy
5277c86482
LASTEXPRESS: Fix sound timer to only run every 17 milliseconds
2011-03-22 16:46:31 -04:00
dhewg
a0bdb6e5df
LASTEXPRESS: Init volume levels on startup
2011-03-19 16:04:53 +01:00
Julien Templier
f751f5b0e1
LASTEXPRESS: Add support for item highlight in inventory and scene restore
...
- Properly show egg not highlighted by default
- Fix GCC warning in drawItem()
- Remove unused code
svn-id: r55855
2011-02-09 03:40:00 +00:00
Max Horn
42ab839dd6
AUDIO: Rename sound/ dir to audio/
...
svn-id: r55850
2011-02-09 01:09:01 +00:00
Julien Templier
058d75b708
LASTEXPRESS: Implement proper Inventory::open() and Inventory::close()
...
svn-id: r55848
2011-02-09 00:24:06 +00:00
Julien Templier
0250fd4571
LASTEXPRESS: Properly update cursor when hovering Egg and inventory items
...
svn-id: r55847
2011-02-09 00:23:49 +00:00
Julien Templier
6b477ee33e
LASTEXPRESS: Refactor inventory handling
...
- Rewrite menu icon part of Inventory::handleMouseEvent()
- Add proper support for icon brightness
- Add drawItem method in place of macro
svn-id: r55846
2011-02-09 00:23:35 +00:00
Max Horn
2d1c8a3533
ALL: Fix whitespaces / indention
...
svn-id: r55818
2011-02-07 23:01:06 +00:00
Julien Templier
04f971370c
LASTEXPRESS: Add some more error handling to Savegame and Sound classes
...
- Add some const modifiers where applicable
- Add some missing casts
svn-id: r55541
2011-01-26 10:43:38 +00:00
David Turner
b52859323c
LASTEXPRESS: Fixed Memory Leak in Subtitles.
...
Also, fixed minor uninitialised read in animation event polling.
svn-id: r55524
2011-01-25 08:24:57 +00:00
Julien Templier
6400659ead
LASTEXPRESS: Correct typos in Alexei logic and sound code
...
svn-id: r55523
2011-01-25 04:25:06 +00:00
David Turner
d183a3618d
LASTEXPRESS: Fix accidental assignment in sound.cpp.
...
Checked with Littleboy that this was not intentional.
svn-id: r55520
2011-01-25 03:22:37 +00:00
David Turner
f9c54abee8
LASTEXPRESS: Corrected format warning in state.h
...
svn-id: r55519
2011-01-25 03:11:27 +00:00
Julien Templier
8db6eb7b87
LASTEXPRESS: Add per-entry sound stream (this fixes all dialog being cut as soon as a new sound is queued)
...
svn-id: r55513
2011-01-25 02:17:05 +00:00
Julien Templier
8f7418556a
LASTEXPRESS: Fix typo in Francois logic
...
svn-id: r55512
2011-01-25 02:16:45 +00:00
Julien Templier
0fd380441a
LASTEXPRESS: Add some subtitle support to Sound class
...
svn-id: r55511
2011-01-25 02:16:29 +00:00
Julien Templier
03faae8551
LASTEXPRESS: Add Italian release (and update file dates for German and Spanish releases)
...
svn-id: r55500
2011-01-24 12:41:16 +00:00
Julien Templier
82b0a9b003
LASTEXPRESS: Add macro for end of entities logic functions
...
svn-id: r55343
2011-01-20 04:57:06 +00:00
Max Horn
2180b2d6b5
COMMON: Split common/stream.h into several headers
...
svn-id: r54385
2010-11-19 17:03:07 +00:00
Julien Templier
9e5b554dc3
LASTEXPRESS: Poll events when loading savegames to prevent freezing the application
...
svn-id: r54368
2010-11-19 10:55:56 +00:00
Julien Templier
2687c987eb
LASTEXPRESS: Add missing queue reset in Entitites::resetSequences
...
svn-id: r54367
2010-11-19 10:55:38 +00:00
Julien Templier
2a6519ca2e
LASTEXPRESS: Simplify current frame calculation in Animation::process
...
(per Max suggestion)
svn-id: r54366
2010-11-19 10:55:21 +00:00
Max Horn
a0df86955f
ALL: Push down deps on stream.h from .h to .cpp files
...
svn-id: r54358
2010-11-19 01:37:04 +00:00
Max Horn
5ea4b576c3
LASTEXPRESS: Include common/events.h instead of common/EventRecorder.h
...
svn-id: r54356
2010-11-19 00:49:16 +00:00
Max Horn
ee4770ffb6
ENGINES: Change 'colour' to 'color'
...
Only changed this in engines where 'color' was/is already used
almost exclusively
svn-id: r54288
2010-11-17 12:22:08 +00:00
Julien Templier
da90fa1405
LASTEXPRESS: Fix SequenceFrame leak in Entities code
...
- Add EntityCallData destructor to dispose of frames & Sequences
- Properly dispose of frames in Entities::resetSequences()
svn-id: r54270
2010-11-16 14:06:59 +00:00
Julien Templier
396bec13f9
LASTEXPRESS: Use Common::StackLock instead of mutex lock/unlock in Sound class
...
svn-id: r54247
2010-11-15 15:48:39 +00:00
Julien Templier
7d9c43d22b
LASTEXPRESS: Fix frame leak in Entities::processFrame()
...
When not keeping the previous frame, the current frame was overwritten.
We now delete it before assigning a new value.
svn-id: r54246
2010-11-15 15:48:20 +00:00
Julien Templier
a4d9d03601
LASTEXPRESS: Update Animation::process()
...
- Use Common::Rational to compute the current frame
- Added check for _currentChunk != NULL
- Add constructor to Chunk structure
svn-id: r54245
2010-11-15 15:48:08 +00:00
Matthew Hoops
dbb3e1dded
LASTEXPRESS: Don't use NULL in arithmetic (silences a warning)
...
svn-id: r54244
2010-11-15 15:20:48 +00:00
Julien Templier
8664535029
LASTEXPRESS: Protect sound queue accesses with mutex
...
Sound entries were being streamed before the data was fully loaded
and queue addition/removal could happen while the sound timer was
going through the queue (reported by digitall).
svn-id: r54241
2010-11-15 12:48:54 +00:00
Max Horn
bc09acfef1
LASTEXPRESS: Silence potential warnings about extra semicolons
...
svn-id: r54207
2010-11-11 18:22:55 +00:00
Johannes Schickel
cc84c2dcfb
LASTEXPRESS: Remove superflous if check in SAFE_DELETE.
...
svn-id: r54203
2010-11-11 16:44:28 +00:00
Julien Templier
521f228ced
LASTEXPRESS: Use SAFE_DELETE for class variables
...
svn-id: r54201
2010-11-11 14:19:44 +00:00
Julien Templier
6711c5a8cf
LASTEXPRESS: Fix more memory leaks
...
- Missing deallocation of queued frames in SceneManager
- Leaking functor on each call to entity setup functions
- Add SoundEntry destructor & better Entity cleanup
as reported by digitall
svn-id: r54196
2010-11-11 06:18:23 +00:00
Julien Templier
3b66e53bbe
LASTEXPRESS: Fix some memory leaks
...
- Reading past the end of file in SaveLoad::init
- Missing deallocation of cache in SoundManager
- Missing deallocation of coords in SceneHotspot
- Missing deallocation of event handlers in LastExpressEngine::setEventHandlers
- Missing deallocation of InSaveFile in SaveLoad::isSavegameValid
- Missing deallocation of frames in Menu
as reported by digitall
svn-id: r54193
2010-11-11 03:25:35 +00:00
Max Horn
4d3a07b494
COMMON: Rename and tweak MD5 functions
...
* names now comply to our naming conventions
* the function computeStreamMD5AsString which computes the MD5
as a hex string now returns it as a Common::String
* add doxygen comments
svn-id: r54121
2010-11-07 17:16:59 +00:00
Max Horn
a984fb17c2
GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warnings
...
svn-id: r54007
2010-11-01 16:03:35 +00:00
Max Horn
e27b05ef35
COMMON: Rename String::printf() to String::format()
...
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.
The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.
svn-id: r54004
2010-11-01 16:02:28 +00:00