22390 Commits

Author SHA1 Message Date
Nicola Mettifogo
8c2ae45ab4 Overhaul of background/mask/path handling:
- added new BackgroundInfo structure
- added helper functions to aid management of BackgroundInfo. Engine is now responsible for allocation/deallocation.
- simplified loading and handling of background resources.

svn-id: r28524
2007-08-11 13:07:21 +00:00
Nicola Mettifogo
2c6c654435 Added new clone method to Palette object.
svn-id: r28523
2007-08-11 12:26:17 +00:00
Filippos Karapetis
156fa8e84f windows.h needs to be included before sdl.h, to avoid redefinition of ARRAYSIZE
svn-id: r28522
2007-08-11 11:31:31 +00:00
Filippos Karapetis
b755d15397 Updated the MSVC8 ScummVM project file for commit #28520
svn-id: r28521
2007-08-11 09:32:23 +00:00
Max Horn
9402981517 SDL backend cleanup (minor)
svn-id: r28520
2007-08-11 08:44:43 +00:00
Max Horn
3f22960a65 Fix warning() format string
svn-id: r28518
2007-08-11 08:16:18 +00:00
Max Horn
a03119c5f5 Changed OSystem (A)RGBToColor and colorTo(A)RGB methods to use ColorMasks templates; clarified some OSystem comments
svn-id: r28517
2007-08-11 08:05:03 +00:00
Max Horn
c492e9c902 make use of RGBToColor<ColorMasks> > template function
svn-id: r28516
2007-08-11 08:02:19 +00:00
Max Horn
4387d82dd8 Removing the DEAD MorphOS port
svn-id: r28515
2007-08-11 08:00:47 +00:00
Kari Salminen
6ea171189b Added Apple IIGS sample's true size calculation (A zero byte can end the sample prematurely).
svn-id: r28514
2007-08-10 15:33:07 +00:00
Kari Salminen
9df29f1123 Parsing Apple IIGS wave info into more easily accessible variables in the memory.
svn-id: r28513
2007-08-10 13:04:59 +00:00
Kari Salminen
1b7bed55fd Removed an extra semicolon.
svn-id: r28512
2007-08-09 21:32:26 +00:00
Nicola Mettifogo
a644817966 Added code to load and display splash screens for BRA. The game crashes afterwards.
svn-id: r28511
2007-08-09 19:26:20 +00:00
Nicola Mettifogo
df7bd6f41c Fix warning.
svn-id: r28510
2007-08-09 19:24:51 +00:00
Nicola Mettifogo
aa1175ed13 Encapsulated palette stuff into a new Palette object and got rid of a lot of #defines. This should ease handling of palettes in different versions of the engine.
svn-id: r28509
2007-08-09 18:02:37 +00:00
Kari Salminen
f200150590 Added Apple IIGS instruments and wave file loading.\n(Apple IIGS music playing is broken at the moment).
svn-id: r28508
2007-08-09 17:44:07 +00:00
Kari Salminen
ae1f66994e Brought back and changed some variables from inside a #if 0 ... #endif
svn-id: r28507
2007-08-09 17:26:41 +00:00
Kari Salminen
89c30c871f Removed old loadInstruments().
svn-id: r28506
2007-08-09 17:11:38 +00:00
Kari Salminen
03d5bbf253 Added a couple of new constants and modified an existing one.
svn-id: r28505
2007-08-09 17:07:36 +00:00
Kari Salminen
8171ead378 Fix compilation under MSVC8 (Added file_nes.h and file_nes.cpp to scumm-project).
svn-id: r28504
2007-08-09 16:51:55 +00:00
Nicola Mettifogo
d340961f78 Fixed some memory leaks.
svn-id: r28503
2007-08-09 11:42:26 +00:00
Eugene Sandulenko
4c9a865e80 Add missing files. Oooops
svn-id: r28502
2007-08-09 07:40:16 +00:00
Travis Howell
760986259c Fix compile warnings.
svn-id: r28501
2007-08-09 05:43:58 +00:00
Travis Howell
1643dd98bc Remove excess ;
svn-id: r28499
2007-08-09 05:01:10 +00:00
Eugene Sandulenko
44405b664f Put ScummNESFile class into separate file.
svn-id: r28497
2007-08-08 23:31:21 +00:00
Eugene Sandulenko
3f3f43dd5e Add Spanish MM NES (2/2)
svn-id: r28496
2007-08-08 23:07:56 +00:00
Eugene Sandulenko
d292bd0f67 Add Spanish MM NES (1/2)
svn-id: r28494
2007-08-08 22:54:15 +00:00
Kari Salminen
056b25c3fa Added detection for Elvira 2 - German Amiga Floppy. Thanks to cartman on #scummvm for submitting the info.
svn-id: r28492
2007-08-08 18:53:58 +00:00
Nicola Mettifogo
6160b7ec97 Removed some duplicated code.
svn-id: r28491
2007-08-08 18:33:55 +00:00
Sven Hesse
b48a14734b (Finally) fixed the turning around counterclockwise in Lost in Time.
svn-id: r28488
2007-08-08 03:42:33 +00:00
Sven Hesse
d667507775 Fixing my leak fix...
svn-id: r28487
2007-08-07 20:43:41 +00:00
Sven Hesse
f93ffdbc2d Stuffing a leak
svn-id: r28486
2007-08-07 18:51:34 +00:00
Nicola Mettifogo
07d6d0fe47 Fix memory leak.
svn-id: r28485
2007-08-07 15:56:44 +00:00
Nicola Mettifogo
d800f33ff1 Turned StaticCnv struct into stock Graphics::Surface, and changed all relevant code.
svn-id: r28484
2007-08-07 15:08:45 +00:00
Nicola Mettifogo
d30c3650a3 MaskBuffer and PathBuffer are now correctly freed before they are deallocated, and so is background Surface.
svn-id: r28483
2007-08-07 14:53:58 +00:00
Nicola Mettifogo
66c0a57248 Cleanup.
svn-id: r28482
2007-08-07 14:05:39 +00:00
Nicola Mettifogo
4d83622af7 Location comments are now displayed by a single Gfx function.
svn-id: r28481
2007-08-07 13:54:29 +00:00
Nicola Mettifogo
797f114aac - Renamed BitBuffer to MaskBuffer
- Added PathBuffer to handle 1-bit buffers for walkable areas
- Changed relevant walk code to use PathBuffer objects for querying screen dimensions.

svn-id: r28478
2007-08-06 22:03:17 +00:00
Nicola Mettifogo
c60fc2202f Made sure mask buffer is zeroed to prevent bizarre artifacts.
svn-id: r28477
2007-08-06 21:58:25 +00:00
Gregory Montoir
e5e353d89c fixed loading of savestates on startup
svn-id: r28476
2007-08-06 20:24:05 +00:00
Nicola Mettifogo
16f161f689 Made disk code directly create background Surface from resources.
svn-id: r28475
2007-08-06 20:07:57 +00:00
Nicola Mettifogo
7c20288ba1 Removed useless mask width and size data members from engine.
svn-id: r28474
2007-08-06 19:43:33 +00:00
Nicola Mettifogo
14448af3bb Made disk code directly create mask BitBuffer from resources.
svn-id: r28473
2007-08-06 19:39:00 +00:00
Nicola Mettifogo
57196e5dd8 Cleanup.
svn-id: r28472
2007-08-06 19:19:59 +00:00
Nicola Mettifogo
6c0288044b Changed graphics mask to a more generic BitBuffer object.
svn-id: r28471
2007-08-06 19:13:51 +00:00
Nicola Mettifogo
872a6edfc6 Made thickness of balloon borders consistent with original games.
svn-id: r28470
2007-08-06 15:40:12 +00:00
Nicola Mettifogo
15c3264971 Changed internal graphics buffers to use Surface instead of vanilla arrays. ScummVM's stock surfaces are used for the moment.
svn-id: r28469
2007-08-06 13:22:21 +00:00
Nicola Mettifogo
bd56174b5d User can now quit (using shortcuts) when asked for ingame protection code.
svn-id: r28468
2007-08-06 08:45:59 +00:00
Nicola Mettifogo
a210dcc03b Fixes bug #1766217 (flickering monk), and prevents animations from stepping back one frame when a dialogue starts. This is part of the regression introduced when screen refreshes were cut down.
svn-id: r28467
2007-08-06 08:44:14 +00:00
Nicola Mettifogo
e65c744039 Added workaround for bugged scripts not declaring local variables before using them (as a sample, see balzo.script in Amiga versions).
svn-id: r28466
2007-08-06 08:38:45 +00:00