Torbjörn Andersson
8a91ae3257
Adapted LavosSpawn's idea for more efficient screen updating. It still
...
renders the entire screen every frame, but it tries to update (i.e. copy to
the backend) only the parts of the screen that actually changed. At least
approximately so.
svn-id: r12142
2004-01-04 15:11:30 +00:00
Torbjörn Andersson
5607f41e2d
Some cleanup and Valgrind warning fixes.
...
svn-id: r12141
2004-01-04 15:05:54 +00:00
Torbjörn Andersson
14acddb167
Update a comment to reflect that some functions have different names now.
...
svn-id: r12140
2004-01-04 14:59:36 +00:00
Max Horn
1081c789a2
cleanup
...
svn-id: r12139
2004-01-04 14:49:14 +00:00
Max Horn
2ce4d13c04
split out cursor/palette code into separate source files
...
svn-id: r12138
2004-01-04 14:35:46 +00:00
Travis Howell
694f02155c
Allow subtitles to be disabled in games using imuse digital again.
...
svn-id: r12137
2004-01-04 14:32:26 +00:00
Travis Howell
dacbe84029
Fix a few subtitles glitches in loomcd during cutscenes.
...
svn-id: r12136
2004-01-04 14:10:06 +00:00
Max Horn
e049e24a2c
no need to specify game data path here: File::setDefaultDirectory() took care of that
...
svn-id: r12135
2004-01-04 14:06:06 +00:00
Max Horn
d1e6c6059e
renamed global var _debugLevel to g_debugLevel; let Engine constructor init it (this way all engines get it for free, allows further cleanup); removed some useless/duplicate member vars in SwordEngine
...
svn-id: r12134
2004-01-04 14:00:58 +00:00
Max Horn
d16ac3e88f
turns out we always had VirtScreen::backBuf but didn't use it... change that (helps readability of the code, IMO); added Gdi::getMaskBuffer (again, helps understanding the code, I think); regrouped some functions in gfx.cpp
...
svn-id: r12133
2004-01-04 13:49:03 +00:00
Max Horn
b8a260c967
removed setFeatures (not needed anymore)
...
svn-id: r12132
2004-01-04 13:46:53 +00:00
Max Horn
805f512452
replaced many instances of _screenWidth by VirtScreen::width, where approriate (there are cases, like when dealing with the camera, where _screenWidth is correct; in other places we still use it, because the VirtScreen is not available in that place at this time, will be fixed later). Reason for all this: eventually a clean seperation will allow us to use a main screen which is wider than the real screen width -> useful for V7+ smooth scrolling
...
svn-id: r12131
2004-01-04 13:09:02 +00:00
Max Horn
14cf65c0ab
uhm? I don't see why VC 2003 would complain about this, but not about the many equal instances of this code (which, BTW, is perfectly valid C...)
...
svn-id: r12130
2004-01-04 12:35:51 +00:00
Robert Göffringmann
cfcb22939f
nothing.
...
svn-id: r12129
2004-01-04 06:38:14 +00:00
Robert Göffringmann
a9a84aee22
added control panel confirmation dialog.
...
svn-id: r12128
2004-01-04 06:31:29 +00:00
Robert Göffringmann
f0d0e4d4b3
removed speed button from control panel and made the game do a full screen refresh after leaving the control panel
...
svn-id: r12127
2004-01-04 05:21:22 +00:00
Joost Peters
7cc9727916
respond to 'alter'-type overrides
...
svn-id: r12126
2004-01-04 03:37:12 +00:00
Max Horn
1ac275e20b
I don't see why this would be needed (my guess is that the hack in initVirtScreen (to use _roomHeight) already covers this, and more)
...
svn-id: r12125
2004-01-04 01:20:26 +00:00
Max Horn
87abee70c1
remove this HACK workaround - I think I may have fixed the true cause (we'll see)
...
svn-id: r12124
2004-01-04 01:11:23 +00:00
Max Horn
b9292bafe1
cleanup (mostly moved stuff around, and replaced the fadeOut call)
...
svn-id: r12123
2004-01-04 00:44:40 +00:00
Max Horn
bceb48f5e0
renamed updateDirtyRect to markRectAsDirty (because that's what it really does); used virtual screen id constants in more places
...
svn-id: r12122
2004-01-03 22:45:23 +00:00
Max Horn
105895da46
cleanup
...
svn-id: r12121
2004-01-03 22:21:56 +00:00
Max Horn
acc4aa0fc2
oops
...
svn-id: r12120
2004-01-03 21:29:17 +00:00
Max Horn
22248a548f
removed unused param in initScreens
...
svn-id: r12119
2004-01-03 21:26:44 +00:00
Max Horn
34db2e793a
added & renamed some constants; fixed & added some doxygen comments; cleaned up the dirty screen code a bit (this should also fix a bug in V1/V2 games where part of the screen was not redrawn properly)
...
svn-id: r12118
2004-01-03 21:22:07 +00:00
Max Horn
d49082065a
TODO
...
svn-id: r12117
2004-01-03 20:42:18 +00:00
Max Horn
cf6a5c0a04
cleanup
...
svn-id: r12116
2004-01-03 19:12:23 +00:00
Max Horn
ee3558b748
fix for BE systems
...
svn-id: r12115
2004-01-03 19:02:18 +00:00
Max Horn
14f28d58f1
remove 'Sky' name prefix for most stuff (not needed anymore since we are in namespace 'Sky' now)
...
svn-id: r12114
2004-01-03 15:57:57 +00:00
Torbjörn Andersson
c1cddedca8
Fixed bug that made ScummVM crash when loading a savegame where the main
...
character was walking. (I had missed a case where pointers were cast to
integers.)
svn-id: r12113
2004-01-03 15:52:05 +00:00
Torbjörn Andersson
fa523f7f7e
It was pointed out to me that we can't use the DEMO variable here, because
...
the missing file may be the one with the resource for the global variables.
svn-id: r12112
2004-01-03 14:49:52 +00:00
Max Horn
069c21310f
oops
...
svn-id: r12111
2004-01-03 14:11:11 +00:00
Max Horn
bfea71b0c4
renamed AudioInputStream -> AudioStream
...
svn-id: r12110
2004-01-03 14:10:13 +00:00
Robert Göffringmann
2a6745a986
changed screen drawing code to only redraw blocks that changed.
...
svn-id: r12109
2004-01-03 12:29:21 +00:00
Torbjörn Andersson
bb8ff0cd90
Made the music code more like the one in BS1, i.e. the fade time is longer
...
and it now fades both up and down.
Plenty of cleanups, simplifications and just moving code around to group it
in what I hope is a more logical fashion.
Fixed a long-standing bug where spot effects would eventually use up all
available sound effect handles. (I may have introduced this when I removed
the expiration of sound effects from FxServer().)
svn-id: r12108
2004-01-03 11:24:39 +00:00
Torbjörn Andersson
e73363bd09
Delete the mutex when we're done with it.
...
svn-id: r12107
2004-01-03 11:12:35 +00:00
Robert Göffringmann
edea972b4b
eriktorbjorn's fix for a crash when sprite were completely outside of the screen
...
svn-id: r12106
2004-01-03 10:49:08 +00:00
Travis Howell
74f958fdf1
Should be enabled for all GF_NEW_COSTUMES games.
...
Fixes missing actors in craters section of puttmoon
svn-id: r12105
2004-01-03 06:38:34 +00:00
Travis Howell
8d9d0fed3f
Add last few
...
svn-id: r12104
2004-01-03 02:30:35 +00:00
Max Horn
1805b07a48
simplification (possible since read() doesn't have to be efficient anymore)
...
svn-id: r12103
2004-01-03 02:30:34 +00:00
Max Horn
d212b2c2e1
replace read() by readBuffer() in CopyRateConverter
...
svn-id: r12102
2004-01-03 02:29:48 +00:00
Travis Howell
1b706d3564
Update
...
svn-id: r12101
2004-01-03 02:20:01 +00:00
Joost Peters
5f85df5ed6
Allow queen to use adlib driver as well (that was surprisingly easy :))
...
svn-id: r12100
2004-01-03 02:08:04 +00:00
Max Horn
b0e23e35ee
Introduce namespace 'Sky'
...
svn-id: r12099
2004-01-03 01:58:58 +00:00
Max Horn
b1d729d6dd
renamed SimonSound class back to just Sound (now that we use namespaces that is just fine)
...
svn-id: r12098
2004-01-03 01:28:00 +00:00
Max Horn
81481ad6da
more MAD MP3 / Ogg Vorbis cleanup: try not to expose anything about the libs used for MP3/Vorbis support -> this eases changing the implementations, and reduces header dependencies (and thus compile time) :-)
...
svn-id: r12097
2004-01-03 01:25:45 +00:00
Max Horn
56eae68e8b
re-enabled .sog and .so3 support for FT
...
svn-id: r12096
2004-01-03 00:55:40 +00:00
Max Horn
96e2c239c4
removed SoundMixer::playMP3CDTrack; simplified makeMP3Stream (special variant with mad_timer_t was really only needed for MP3TrackInfo class)
...
svn-id: r12095
2004-01-03 00:55:28 +00:00
Max Horn
d335bce62d
added makeVOCStream() (convenience function)
...
svn-id: r12094
2004-01-03 00:33:14 +00:00
Gregory Montoir
8bd9ce2949
- added missing MOVE_SPEAK code (only CHEF.DOG seems to use that)
...
- clear Talk::_dialogueTree[0] to avoid problems when accessing oldLevel / level 0
svn-id: r12093
2004-01-02 20:05:18 +00:00