Commit graph

60 commits

Author SHA1 Message Date
Filippos Karapetis
d1b5d41005 LAB: Clean up sound effect looping, starting and stopping code 2015-12-26 12:45:48 +02:00
Willem Jan Palenstijn
60657f9fd2 LAB: Simplify Anim output to buffer 2015-12-24 16:53:32 +01:00
Willem Jan Palenstijn
d98d39c315 LAB: Move dispBitMap to Anim 2015-12-24 16:51:02 +01:00
Willem Jan Palenstijn
dacbf9881c LAB: Make _dispBitmap handling more explicit 2015-12-24 16:16:48 +01:00
Willem Jan Palenstijn
442c1538a2 LAB: Clean up diff chunk handling 2015-12-24 16:02:22 +01:00
Strangerke
b67b39038b LAB: Remove duplicate code in a switch 2015-12-24 00:08:41 +01:00
Filippos Karapetis
9dae9eb811 LAB: Implement the scroll buffer of doScrollWipe() and doScrollBounce()
This was left out from previous refactoring. Also, simplify
doScrollBounce()
2015-12-23 21:43:17 +01:00
Strangerke
c9049f2329 LAB: Remove left-over long size specifiers 2015-12-23 21:43:17 +01:00
Strangerke
34b59256fc LAB: Replace g_system by _system 2015-12-23 21:43:16 +01:00
Strangerke
966f82d82e LAB: Clarify a bit the use of header in Anim 2015-12-23 21:35:35 +01:00
Strangerke
50a6cf12ef LAB: Add a safeguard on numChunks 2015-12-23 21:35:35 +01:00
Strangerke
8a3ff50d5c LAB: Remove _drawBitMap, make diffNextFrame a bit more readable 2015-12-23 21:35:34 +01:00
Strangerke
8c9d65b8cb LAB: Rename a member of Anim 2015-12-23 21:35:34 +01:00
Strangerke
be4c436dca LAB: Move event update functions out of updateMusic 2015-12-23 21:35:34 +01:00
Strangerke
28c74aed05 LAB: More work on the comments 2015-12-23 21:35:30 +01:00
Filippos Karapetis
b1fc785225 LAB: Use templates for the undiff functions 2015-12-23 21:34:08 +01:00
Strangerke
f452834f70 LAB: Remove unused variables in DIFFHeader and BitMap 2015-12-23 21:34:08 +01:00
Filippos Karapetis
bc25b6be55 LAB: Change the graphics and audio code to use Common::File directly 2015-12-23 21:34:08 +01:00
Strangerke
eb6854e2c7 LAB: Add a short delay when changing screen so that the text is readable when changing screens 2015-12-23 21:34:07 +01:00
Strangerke
5ed11d721c LAB: Verify the appropriate use of parenthesis in if statements 2015-12-23 21:34:06 +01:00
Strangerke
83126e84ee LAB: Make the use of nullptr consistent through the engine 2015-12-23 21:34:06 +01:00
Filippos Karapetis
e994c90d9b LAB: Simplify the crumb wait time code 2015-12-23 21:34:03 +01:00
Filippos Karapetis
231dda2ba9 LAB: Fix regression in animation code in looping animations
This fixes Daedalus' flight animation in the ending cutscene
2015-12-23 21:34:02 +01:00
Filippos Karapetis
ceb5ef18e5 LAB: Get rid of a superfluous global variable 2015-12-23 21:34:02 +01:00
Filippos Karapetis
ff43ec7e86 LAB: Now that timing works correctly, disable some annoying delays 2015-12-23 21:34:02 +01:00
Filippos Karapetis
452c20ab8a LAB: Get rid of the rest of the custom time delay functions 2015-12-23 21:34:01 +01:00
Filippos Karapetis
1b0a7db0b6 LAB: Get rid of getTime(), readBlock() and getRandom()
Also, simplify some time-related functions
2015-12-23 21:34:01 +01:00
Strangerke
7bb45a8eaa LAB: Move timing functions to the utility class 2015-12-23 21:34:01 +01:00
Filippos Karapetis
e0d546a4eb LAB: Remove extra whitespace 2015-12-23 21:34:00 +01:00
Filippos Karapetis
aa7ec3654d LAB: Refactor readPictToMem()
This fixes crashes in the teleporter and the journal, and plugs several
memory leaks
2015-12-23 21:34:00 +01:00
Filippos Karapetis
9c94d140db LAB: Simplify bitmap flags 2015-12-23 21:34:00 +01:00
Strangerke
f59ceebad9 LAB: Move readBlock to the utility class 2015-12-23 21:33:59 +01:00
Filippos Karapetis
e7a0e05301 LAB: Merge playDiff() into readDiff() 2015-12-23 21:33:59 +01:00
Eugene Sandulenko
cf020db741 LAB: Converted DisplayMan::_dispBitMap to a pointer. 2015-12-23 21:33:58 +01:00
Eugene Sandulenko
9015cf72a3 LAB: Reduced header dependency: interface.h 2015-12-23 21:33:57 +01:00
Eugene Sandulenko
66f2935a22 LAB: Reduced header dependency: dispman.h, eventman.h 2015-12-23 21:33:57 +01:00
Eugene Sandulenko
5fad5cece3 LAB: Reduced header dependency: labsets.h, utils.h 2015-12-23 21:33:57 +01:00
Eugene Sandulenko
d8e01fe23a LAB: Reduce header dependency from music.h 2015-12-23 21:33:56 +01:00
Eugene Sandulenko
eccb852749 LAB: Removed unnecessary includes 2015-12-23 21:33:56 +01:00
Strangerke
2d0fab7f4c LAB: Use // for comments 2015-12-23 21:33:55 +01:00
Filippos Karapetis
21fc36bfad LAB: Get rid of _isBM 2015-12-23 21:33:55 +01:00
Strangerke
ae056a767b LAB: Use doxygen format for function comments 2015-12-23 21:33:55 +01:00
Strangerke
3a1ee64761 LAB: Review spacing 2015-12-23 21:33:55 +01:00
Strangerke
dcefb696ed LAB: Remove more extern variables 2015-12-23 21:33:54 +01:00
Strangerke
5bc48cbbdd LAB: Move utility functions to a separate class 2015-12-23 21:33:54 +01:00
Filippos Karapetis
320e658cb1 LAB: Get rid of the intermediate display bitmap pointer 2015-12-23 21:33:54 +01:00
Filippos Karapetis
b6397c0af7 LAB: Use the correct bitmap buffer in the Anim class 2015-12-23 21:33:54 +01:00
Filippos Karapetis
156ad539ff LAB: Move readSound() into the Music class 2015-12-23 21:33:53 +01:00
Filippos Karapetis
4f1a8f9fa4 LAB: Merge the uniffMemory() code into unDiff() 2015-12-23 21:33:53 +01:00
Strangerke
f3a24ff593 LAB: Some refactoring, remove dead code and a useless return value 2015-12-23 21:33:53 +01:00