Torbjörn Andersson
8e4f5b6f82
Fixed warning.
...
svn-id: r30688
2008-01-28 20:06:40 +00:00
Nicola Mettifogo
68fc3f1dee
Removed usage of kBitFront and kBitBack. Only the old kBit2 buffer is kept to store the background picture.
...
svn-id: r30687
2008-01-28 19:56:29 +00:00
Nicola Mettifogo
b80419efb4
Made halfbrite work again.
...
svn-id: r30685
2008-01-28 18:15:06 +00:00
Nicola Mettifogo
56eed45317
Move low level background management into Gfx.
...
svn-id: r30681
2008-01-28 17:28:16 +00:00
Nicola Mettifogo
3c2c16c705
Fixed animation sorting: everything should be drawn like before revision 30673 now. Character may still disappear when changing location because of wrong resource management, though.
...
svn-id: r30680
2008-01-28 16:52:41 +00:00
Nicola Mettifogo
be2c5d3c87
All interactive objects are now drawn in the framebuffer instead of using the old kBitBack/kBitFront buffers. Animation are not sorted yet, so they can overlap in an inconsistent fashion for the time being.
...
svn-id: r30673
2008-01-28 12:20:53 +00:00
Jordi Vilalta Prat
d6c34bdc4b
Fixed the spaces before tabs.
...
svn-id: r30667
2008-01-28 00:14:17 +00:00
Nicola Mettifogo
dd45b7ad45
Some refactoring of text drawing routines.
...
svn-id: r30615
2008-01-22 20:53:29 +00:00
Nicola Mettifogo
6b188943ac
Merged low level blitting functions into one single routine.
...
svn-id: r30600
2008-01-21 20:03:37 +00:00
Nicola Mettifogo
7d635a4b9c
Added function to encapsulate/protect manipulation of background.
...
svn-id: r30441
2008-01-12 10:46:51 +00:00
Nicola Mettifogo
3ed0ddd375
Refactored some text drawing code.
...
svn-id: r30362
2008-01-09 22:03:51 +00:00
Nicola Mettifogo
605c9d0fd6
Turned Gfx::setFont into a protected member, since now Gfx can automatically detect which font to use. Gfx still needs setFont internally to select fonts. The font shadowing introduced in revision 30221 has been removed as well, since the new approach handles it better.
...
svn-id: r30361
2008-01-09 21:54:58 +00:00
Nicola Mettifogo
bdf440fdae
Replaced the remaining old string code with the new label code. All the text is now drawn in the framebuffer instead of being blitted onto the internal game screen buffer.
...
svn-id: r30360
2008-01-09 21:46:57 +00:00
Nicola Mettifogo
e21fd496f8
Restructured label handling and moved all related code to Gfx.
...
svn-id: r30345
2008-01-08 20:46:58 +00:00
Nicola Mettifogo
1b80eedaa1
Added a proper _name member to Zone, instead of using the label text.
...
svn-id: r30343
2008-01-08 20:32:29 +00:00
Nicola Mettifogo
5ff1ccabe6
Removed now useless functions.
...
svn-id: r30314
2008-01-06 20:51:05 +00:00
Torbjörn Andersson
eeb212c7e0
Indent with tabs instead of spaces.
...
svn-id: r30312
2008-01-06 20:42:28 +00:00
Nicola Mettifogo
db51514dd3
Moved balloons management into Gfx, which is now responsible for positioning and drawing. All balloons are now drawn on a different layer than the game graphics, thus simplifying screen management. Dialogue code has undergone a major revision, and the superior implementation of answer selection in the Amiga version is now used in place of the poor PC one. Other bits (where some changes had already been introduced) have been updated, too.
...
svn-id: r30311
2008-01-06 19:29:41 +00:00
Nicola Mettifogo
3e04d8b215
Fix for bug# 1729307. Fonts are now displayed with shadows when needed on Amiga. The correct font for intro screen has also been selected.
...
svn-id: r30221
2008-01-04 21:24:51 +00:00
Nicola Mettifogo
d632206248
Added halfbrite effect to Nippon Safes Amiga. Implementation is not complete, since the spotlight during Donna's dance is not moving yet.
...
svn-id: r29863
2007-12-15 20:56:05 +00:00
Nicola Mettifogo
919c0a2833
* added adapter from Graphics::Surface to Frames
...
* changed all Disk routines to return Frames* instead of Graphics::Surface*
* changed displayItemComment to use new gfx routines
* merged code for Examine zones into displayComment
svn-id: r29615
2007-11-22 21:51:33 +00:00
Nicola Mettifogo
d8e8050015
* added (incomplete) explicit state machine handling in engine class (see _inputMode)
...
* added service routines to Gfx
* changed displayCharacterComment to work with the new state machine and gfx routines
svn-id: r29613
2007-11-22 21:19:44 +00:00
Nicola Mettifogo
6af9577e84
* moved label drawing into Gfx, to be drawn directly in the framebuffer
...
* changed low level blitting function to accept Graphics::Surface to ease development
* temporarily disabled labels/subtitles in BRA
svn-id: r29593
2007-11-21 20:04:14 +00:00
Nicola Mettifogo
f8e1da5b60
* made engine use Inventory and InventoryRenderer
...
* inventory drawing is now performed directly in the framebuffer instead of using the game screen buffer
* specialized jobs to handle inventory drawing have been deleted as they had become obsolete
svn-id: r29571
2007-11-19 20:46:28 +00:00
Nicola Mettifogo
1ea0b305a5
Added color-inversion effect in character selection screen. The effect doesn't exactly work like the original yet (Amiga only).
...
svn-id: r29372
2007-11-01 21:56:14 +00:00
Nicola Mettifogo
db19310ad1
Cut down screen updates when palette is not animated: should lead to performance increase on systems with low resources
...
svn-id: r29225
2007-10-15 19:00:46 +00:00
Nicola Mettifogo
1c52ea0562
Decoupled password request from actual rendering of the dialogue screen, thus making it possible to fix bug #1765300 . This bug was present in the original game, causing garbled text to appear when asking for password (only in the English version).
...
svn-id: r29213
2007-10-13 21:49:38 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Nicola Mettifogo
21e4f4f176
Simplified global label management and added subtitles for BRA.
...
svn-id: r28828
2007-09-02 18:34:11 +00:00
Nicola Mettifogo
60a6d5aa53
Jobs are now members of the engine and are handled with a table, instead of being external functions.
...
svn-id: r28824
2007-09-02 15:17:41 +00:00
Nicola Mettifogo
39e4a9b180
Added an abstract base class for representing multiple-frames for animations. Changed user code to rely on the new interface. Cnv has been turned into an implementation of the new interface, and it is now known as a concrete class only to Disk and Font code for Nippon Safes.
...
svn-id: r28734
2007-08-25 20:34:10 +00:00
Nicola Mettifogo
9125ccb3eb
Oops. Buffers are now initialized properly.
...
svn-id: r28559
2007-08-12 13:06:42 +00:00
Travis Howell
efaca7c657
Change BRA to default to 1x scaler.
...
svn-id: r28558
2007-08-12 12:52:38 +00:00
Nicola Mettifogo
be994c88db
Moved intro hack routines to Parallaction_ns callables, where they belonged from the beginning.
...
svn-id: r28541
2007-08-12 09:10:10 +00:00
Nicola Mettifogo
8444ad7f48
Even better large background support. Now internal buffers aren't reallocated if not background size stays the same across location switches.
...
svn-id: r28540
2007-08-12 08:47:45 +00:00
Nicola Mettifogo
fdee6a6e87
Better support for large backgrounds.
...
svn-id: r28539
2007-08-12 08:37:46 +00:00
Nicola Mettifogo
46c74a5bcf
Added very basic support for backgrounds larger than screen:
...
- background surfaces are now reallocated for every location
- screen is copied according to _scrollX/Y position
svn-id: r28538
2007-08-12 08:26:20 +00:00
Nicola Mettifogo
9167422ce3
Moved cursor handling from Gfx to engine subclasses.
...
svn-id: r28534
2007-08-11 20:44:22 +00:00
Nicola Mettifogo
b07f787f7f
Moved core font management from Gfx to engine. Gfx still retains features related to displaying text on screen.
...
svn-id: r28530
2007-08-11 17:25:57 +00:00
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
Kari Salminen
1b7bed55fd
Removed an extra semicolon.
...
svn-id: r28512
2007-08-09 21:32:26 +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
Nicola Mettifogo
6160b7ec97
Removed some duplicated code.
...
svn-id: r28491
2007-08-08 18:33:55 +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
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