Torbjörn Andersson
802a301a16
Removed some of the #includes from sword2.h
...
svn-id: r12739
2004-02-05 14:19:07 +00:00
Torbjörn Andersson
065f2bb9eb
It's a new year in BS2 land, too!
...
svn-id: r12181
2004-01-06 13:44:17 +00:00
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
fa2b8ba8de
More cleanup. I've eliminated all the temporary global variables I've added
...
over the past few weeks, except for g_sword2. (Of course, this doesn't
necessarily make the code any prettier, but we can work on that later.)
svn-id: r11309
2003-11-16 14:18:29 +00:00
Torbjörn Andersson
1f53624d88
Removed SVM_timeGetTime(). We may as well call get_msecs() directly.
...
svn-id: r11260
2003-11-11 10:30:25 +00:00
Torbjörn Andersson
446a01ba09
Moved low-level keyboard and mouse handling to a new Input class, and
...
renamed the Display class Graphics for no better reason than me liking the
phrase "sound and graphics" better than "sound and display".
svn-id: r11258
2003-11-11 07:43:02 +00:00
Max Horn
2fef2dcb84
bs2 -> sword2
...
svn-id: r10997
2003-10-28 19:51:30 +00:00
Torbjörn Andersson
8b42d65a7e
Dumped most of the remaining "driver" code into a new "Display" class. This
...
touches a lot of the code, of course, and adds yet another global variable
(temporarily, I hope), but everything still seems to work.
Knock on wood.
svn-id: r10806
2003-10-15 06:40:31 +00:00
Torbjörn Andersson
29b646b30a
Some cleanup, some code removal and some unstubbing. Nothing important.
...
svn-id: r10659
2003-10-07 07:07:47 +00:00
Torbjörn Andersson
4fad04846a
Changed to use #include "bs2/..." and removed the inclusion of standard C
...
headers. Most (all?) of the ones we need should probably come from stdafx.h
instead.
svn-id: r10588
2003-10-04 08:07:03 +00:00
Max Horn
5a074e6137
added namespace Sword2
...
svn-id: r10581
2003-10-04 00:52:27 +00:00
Torbjörn Andersson
49fa159ed4
More cleanup, plus support for cutscene leadout music. For now, we only
...
play that music for cutscenes that have subtitles.
svn-id: r10460
2003-09-28 14:13:57 +00:00
Torbjörn Andersson
442fd0cdf8
I don't think UpdatePaletteMatchTable() has to write the table to file. In
...
fact, I'm not even sure the !data case ever happens.
svn-id: r10425
2003-09-27 15:30:17 +00:00
Torbjörn Andersson
4ae1674a44
Removed ancient version history. Much of it doesn't apply to us, and was
...
cluttering up the files anyway. (Though I do feel a slight twinge of guilt
for removing historical records like this. :-)
svn-id: r10384
2003-09-23 16:53:25 +00:00
Max Horn
be9d4066e1
moved engine.* to base; this fixes some linking issues when building a barebone ScummVM (or maybe I just want to increase our CVS stats? <g>)
...
svn-id: r10287
2003-09-18 02:07:18 +00:00
Torbjörn Andersson
bb5f479a8c
Added a WaitForFade() function, to replace numerous while-loops scattered
...
througout the code.
svn-id: r10127
2003-09-09 12:14:08 +00:00
Torbjörn Andersson
1ebb3cb742
Unstubbed DimPalette() (used when pausing the game) and re-indented the
...
code to be more in line with the ScummVM coding style.
svn-id: r9878
2003-08-27 07:01:05 +00:00
Torbjörn Andersson
fda7df57fa
Handle the fadeNow parameter to BS2_SetPalette() so that the palette is
...
only uploaded to the backend if fadeNow == RDPAL_INSTANT. Otherwise, assume
that FadeServer() will do it for us, eventually.
I think this is the correct behaviour, and it prevents the bug where the
unfaded room image might flash by briefly when moving the mouse while
changing rooms.
svn-id: r9868
2003-08-26 15:19:29 +00:00
Torbjörn Andersson
fcc904a813
FadeServer() is now called from ServiceWindows(), thus eliminating the need
...
for the making it a timer handler. This should eliminate the occasional
glitches I've been seeing with fades not being completed.
I'm also hoping that it will fix the problem where the game would sometimes
hang when moving between rooms. I know that at least once when I had that
happen to me the game was busy-waiting for the palette to fade.
At the very least, it's one place less to worry about thread-safety in.
svn-id: r9854
2003-08-25 06:13:28 +00:00
Max Horn
01f020da2b
SetPalette conflicts with an OS symbol on OS X
...
svn-id: r9829
2003-08-23 14:42:37 +00:00
Torbjörn Andersson
641d164e21
Added light mask support (in the demo this is most visible when walking
...
under the shack), plus some other cleanups. The s->blend & 0x02 case looks
bogus to me, but I don't know where it's used and I can't see that the
original did it differently.
svn-id: r9819
2003-08-22 07:04:50 +00:00
Jonathan Gray
48ceff0545
patch #790060 SWORD2: Initial graphics work from erik very nice indeed :)
...
svn-id: r9737
2003-08-17 14:07:16 +00:00
Paweł Kołodziejski
e5e117006a
back disable warnings into stdafx.h, vc6 is lack of warnings support
...
svn-id: r9337
2003-07-31 18:35:01 +00:00
Jonathan Gray
b11c3a6c0b
remove bs2 specific osystem var
...
svn-id: r9330
2003-07-31 15:24:23 +00:00
Jonathan Gray
6822552a10
slightly changed version of erik's implmentation of FadeServer
...
svn-id: r9328
2003-07-31 14:51:02 +00:00
Jonathan Gray
d520390cc5
rename functions with windows specific names
...
svn-id: r9233
2003-07-28 07:47:21 +00:00
Jonathan Gray
a05c4bda0f
-Werror cleanup
...
svn-id: r9230
2003-07-28 07:22:40 +00:00
Travis Howell
ccc40eecc9
Compiles on mingw now
...
svn-id: r9222
2003-07-28 03:12:49 +00:00
Jonathan Gray
dc6aa9912c
bs2 driver
...
svn-id: r9212
2003-07-28 01:47:41 +00:00