Commit graph

82 commits

Author SHA1 Message Date
Filippos Karapetis
a5553b3197 Use Common::Keycode and enums in interface buttons 2015-12-24 19:12:02 +02:00
Filippos Karapetis
19303c49cf LAB: Rename closeFont() to freeFont() 2015-12-24 18:30:54 +02: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
Willem Jan Palenstijn
82c610d160 LAB: Remove now-unused variable 2015-12-24 15:32:24 +01:00
Willem Jan Palenstijn
a08dd694e5 LAB: Improve whitespace handling in flowText
flowText was handling presence/absence of whitespace after lines
inconsistently. This caused end-of-string to be missed, which broke
last-page detection in the journal. It also introduced extra spaces at the
beginning of pages.
2015-12-24 15:27:48 +01:00
Filippos Karapetis
f8bf5ed867 LAB: Simplify flowText() a bit
Since the extra image buffer is only used in one place, we can save
ourselves one assignment
2015-12-24 13:07:18 +02:00
Filippos Karapetis
4b3e671de5 LAB: Merge flowTextToMem() inside flowText() 2015-12-24 12:27:56 +02:00
Filippos Karapetis
7216bddd56 LAB: Merge setPen() into rectFill() 2015-12-24 12:08:51 +02:00
Strangerke
1206fe22b8 LAB: Fix out of bound in writeColorRegs 2015-12-24 08:30:50 +01:00
Strangerke
746f494c85 LAB: Fix bug in doTransWipe 2015-12-24 08:10:30 +01:00
Strangerke
997150e76e LAB: Change the initial valueof _screenBytesPerPage, use it in Journal functions 2015-12-24 01:12:39 +01:00
Filippos Karapetis
6f6c92d470 LAB: Prevent the Image destructor from deleting the drawing buffer 2015-12-24 01:32:22 +02:00
Filippos Karapetis
7a7a25c91d LAB: The maxHeight parameter of readPict() is no longer used 2015-12-24 01:32:22 +02:00
Filippos Karapetis
7c33862a09 LAB: The second parameter of fade() is always 0 2015-12-24 00:44:16 +02:00
Filippos Karapetis
52c7fcbfe5 LAB: Rename overlayRect() to checkerboardEffect() 2015-12-23 21:43:17 +01:00
Filippos Karapetis
5327b6f545 LAB: Use byte instead of char in overlayRect()
This matches the idea that colors are in range of 0 - 255. Thanks to
LordHoto
2015-12-23 21:43:17 +01:00
Filippos Karapetis
60f7849c20 LAB: Improve the palette assignment in writeColorRegs()
Thanks to LordHoto
2015-12-23 21:43:17 +01:00
Filippos Karapetis
c66d5eca3a LAB: setAmigaPal() is always using 16 colors 2015-12-23 21:43:17 +01:00
Filippos Karapetis
29d85c8d50 LAB: Use int in for loops, instead of uint16 2015-12-23 21:43:17 +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
34b59256fc LAB: Replace g_system by _system 2015-12-23 21:43:16 +01:00
Filippos Karapetis
8de38a8d10 LAB: Greatly simplify doScrollBlack() using scrollDisplayY()
This also fixes a crash when crossing the street
2015-12-23 21:43:16 +01:00
Filippos Karapetis
7a81e03b25 LAB: Prevent the Image destructor from deleting external scroll buffers 2015-12-23 21:43:16 +01:00
Filippos Karapetis
f7395ba0ab LAB: Rewrite the action message functionality (_doNotShowMessage) 2015-12-23 21:43:16 +01:00
Filippos Karapetis
f59ccf534c LAB: Get rid of the _doNotDrawMessage hack (from the original)
This is actually a nasty hack in the original to avoid duplicate
messages, but it ended up hiding some game messages. This hack isn't
really necessary at all for game functionality, so it has been
removed, without any notable side-effects
2015-12-23 21:35:35 +01:00
Strangerke
be4c436dca LAB: Move event update functions out of updateMusic 2015-12-23 21:35:34 +01:00
Strangerke
fa222f0ca8 LAB: Make string check more readable, remove a useless c_str() 2015-12-23 21:35:32 +01:00
Strangerke
2eeb027604 LAB: Revert previous commit as suggested by wjp 2015-12-23 21:35:32 +01:00
Strangerke
eba44d3094 LAB: Close _curBitmap before deleting it 2015-12-23 21:35:32 +01:00
Strangerke
b53735ba06 LAB: Constify some parameters 2015-12-23 21:35:32 +01:00
Strangerke
cff1f99b26 LAB: Set a default to the second parameter of readPict 2015-12-23 21:35:32 +01:00
Strangerke
4dfc428bac LAB: Some cleanup and refactoring 2015-12-23 21:35:32 +01:00
Strangerke
cc039ef113 LAB: Fix crash in intro 2015-12-23 21:35:32 +01:00
Strangerke
7e047b45b7 LAB: Fix a delete[] pointed out by eriktorbjorn 2015-12-23 21:35:31 +01:00
Strangerke
ae9c2fea51 LAB: Replace char* by Common::String in several functions 2015-12-23 21:35:31 +01:00
Strangerke
a4d3bda5c1 LAB: Use an array of Common::Strings instead of bytes in Action 2015-12-23 21:35:31 +01:00
Strangerke
eaa6f3bd01 LAB: Fix some GCC warnings 2015-12-23 21:35:30 +01:00
Strangerke
ee4e67a731 LAB: Move and improve function comments to header in DispMan 2015-12-23 21:35:30 +01:00
Strangerke
b9326e3850 LAB: Refactor some DispMan functions to use Common::String 2015-12-23 21:35:30 +01:00
Strangerke
a2097d2a2e LAB: Get rid of strcat by using Common::String 2015-12-23 21:35:30 +01:00
Strangerke
1d9e3cd561 LAB: Remove useless variable 2015-12-23 21:35:30 +01:00
Strangerke
3fcd3c1526 LAB: Avoid memory leaks with fonts 2015-12-23 21:35:30 +01:00
Filippos Karapetis
3e8eaa2c35 LAB: Use Common::String for strings, removing a ton of memory leaks
Also, add a method to properly free room views
2015-12-23 21:35:27 +01:00
D G Turner
a7afc80e18 LAB: Avoid variable shadowing compiler warning. 2015-12-23 21:34:09 +01:00
Filippos Karapetis
c5528a631d LAB: Handle some differences of the Amiga version
The Amiga version is still not working, as the CONTROL and INV files
are missing, and the format of the font files is different
2015-12-23 21:34:09 +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
Filippos Karapetis
318dc59382 LAB: Make setUpScreens() a bit easier to read 2015-12-23 21:34:08 +01:00