aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver
AgeCommit message (Collapse)Author
2003-08-27use file class for speech so people with clusters in different directories ↵Jonathan Gray
get to hear sound as well svn-id: r9875
2003-08-27errr. this shouldn't have been committedJoost Peters
svn-id: r9872
2003-08-27Basic speech code, the change in speech.cpp is needed for me, but I am ↵Joost Peters
afraid it might break "speech.clu opening" for someone else..I'm confused as to how this all works. heh. Anyway, if you hear no voices: this is probably where to look. svn-id: r9871
2003-08-26Handle the fadeNow parameter to BS2_SetPalette() so that the palette isTorbjörn Andersson
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-26The graphics detail settings partially work now. They only affect howTorbjörn Andersson
sprites are drawn, but I think that's how it should be. 1: No bells or whistles. 2: This setting adds sprite blending, e.g. the smoke at the docks or the display cases at the Glease Gallery. 3: This setting adds light map support, e.g. when walking under the shack at the docks. 4: This setting adds better scaling algorithms. The first three settings should work fine now. In fact, the third setting is what we used to implement. The fourth setting still needs work and testing. I've added code for downscaling case, but frankly I'm not convinced the result is any better than with the simpler scaler. I usually can't even tell the difference. Of course, my translation of the original code could very well be buggy. svn-id: r9867
2003-08-25Clarified the comments for our Surface class a bit. I plan on removing itTorbjörn Andersson
completely soon, so don't use it unless you really, really need to. svn-id: r9855
2003-08-25FadeServer() is now called from ServiceWindows(), thus eliminating the needTorbjörn Andersson
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-24fix strange keyboard issues by passing the game the values it wantsJonathan Gray
svn-id: r9847
2003-08-24we don't need to be told when we've hit a keyJonathan Gray
svn-id: r9842
2003-08-24return read error in PlayCompSpeech for now so we get subtitlesJonathan Gray
svn-id: r9841
2003-08-24work around compiler bug in GCC 2.95.xMax Horn
svn-id: r9836
2003-08-23SetPalette conflicts with an OS symbol on OS XMax Horn
svn-id: r9829
2003-08-23Unstubbed the Create/Draw/DeleteSurface() functions, and removed someTorbjörn Andersson
unnecessary stuff from our own Surface class. The former allows the in-game dialogs to at least sort of work, and the latter gained me a few frames per second, according to the built-in FPS counter. svn-id: r9825
2003-08-22Added light mask support (in the demo this is most visible when walkingTorbjörn Andersson
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-22Only hide the mouse cursor if both the mouse animation and the luggageTorbjörn Andersson
animation are removed. svn-id: r9818
2003-08-21-Werror cleanup, don't try to free const variables...Jonathan Gray
svn-id: r9808
2003-08-21When a menu icon reaches its full size it can be drawn directly, withoutTorbjörn Andersson
being run through the shrinker first. svn-id: r9806
2003-08-20Draw combined cursor properly. Thanks to joost for finding out that theOliver Kiehl
maximum cursor size in SDL is 80x80. This *might* cause problems in some cases svn-id: r9805
2003-08-20Lots of cleanup.Torbjörn Andersson
Oh, and the menus should work now. :-) svn-id: r9804
2003-08-20Initial (slightly buggy) support for "luggage" mouse cursors, i.e. cursorsTorbjörn Andersson
made up from two different images. svn-id: r9802
2003-08-20fix warning (properly initialise 2 dimensional arrays)Joost Peters
svn-id: r9798
2003-08-20Applied a different fix for the mouse offset problem. As far as I can tell,Torbjörn Andersson
the old way would have made it impossible to access the (not yet implemented) menu icons at the top of the window. I hope this one works... svn-id: r9793
2003-08-20Removed some memset()s that I added earlier out of paranoia. Added a FIXMETorbjörn Andersson
comment, noting that DrawMouse() used to handle the "luggage animations" as well. I don't know if I broke anything when I moved that part of the code. svn-id: r9792
2003-08-20SetMenuIcon(), other stubs in menu.cpp will have to be done for things to be ↵Jonathan Gray
visible, don't have time to do this at the moment. As a side note the demo is now finishable even though you can't see the inventory :) svn-id: r9791
2003-08-20correction from olki that fixes mouse y offset being too highJonathan Gray
svn-id: r9790
2003-08-20Cleaned up DrawSprite() and added scaling, based on the "line doubling"Torbjörn Andersson
method in the original code. There are still a few minor things missing, but it should work well enough for now. svn-id: r9788
2003-08-20This should fix the crash in the demo when you tried to walk down theTorbjörn Andersson
stairs to the water. (And probably countless other places as well.) svn-id: r9787
2003-08-20This should fix mouse cursor animations. (Actually, I hardly even looked atTorbjörn Andersson
what the old mouse cursor patch did. I simply replaced it with my own. Sorry about that. :-) svn-id: r9786
2003-08-19preliminary cursor code. dirty, hacky and no animation yet. but at least ↵Oliver Kiehl
something... svn-id: r9785
2003-08-19Remove a bunch of unneeded cruft - but barely the surface of it. This code ↵James Brown
is depressing and duplicated all over the place... I don't think I can bear to touch this code until it's undergone some MAJOR cleanup :) svn-id: r9782
2003-08-19patch #791032 from erik SWORD2: Sprite drawing (incomplete)Jonathan Gray
svn-id: r9780
2003-08-18Added support for opaque surfaces (it's the default now, actually) since itTorbjörn Andersson
looks like the sprite renderer may need them. svn-id: r9753
2003-08-17patch #790060 SWORD2: Initial graphics work from erik very nice indeed :)Jonathan Gray
svn-id: r9737
2003-08-03On second thought, WAVE_FORMAT_PCM probably means uncompressed WAV-dataTorbjörn Andersson
after all, or at least not ADPCM-compressed. Updated the comments, but I still don't know how to play it. svn-id: r9433
2003-08-02patch #781530 Initial work on StreamCompMusic() by erikJonathan Gray
svn-id: r9394
2003-08-02removed OSystem::set_mouse_pos (I hope I didn't break any backends, but if I ↵Max Horn
did it should be trivial to get them working again) svn-id: r9391
2003-08-01#include cleanup (explicityl specify the location for headers from common/, ↵Max Horn
so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level) svn-id: r9359
2003-07-31never include headers in other headers if you can avoid it -> this cuts down ↵Max Horn
on the number of files that have to be recompiled when a header is modified svn-id: r9348
2003-07-31back disable warnings into stdafx.h, vc6 is lack of warnings supportPaweł Kołodziejski
svn-id: r9337
2003-07-31remove bs2 specific osystem varJonathan Gray
svn-id: r9330
2003-07-31slightly changed version of erik's implmentation of FadeServerJonathan Gray
svn-id: r9328
2003-07-30rename bs2 to sword2 to have the same name as the original engine.Oliver Kiehl
besides this way all our engines start with an "s" ;) svn-id: r9301
2003-07-29turn d_sound.cpp into class BS2SoundJonathan Gray
svn-id: r9280
2003-07-28StopSpeech -> StopSpeechBS2 (avoid conflict wiht SpeechSynthesis framework ↵Max Horn
on OS X) svn-id: r9248
2003-07-28fix some VC7 warningsJonathan Gray
svn-id: r9240
2003-07-28rename _DEBUG define to _BS2_DEBUG to stop it conflicting with VCJonathan Gray
svn-id: r9237
2003-07-28substitute long int for LARGE_INTEGERJonathan Gray
svn-id: r9236
2003-07-28replace DWORD usage with uint32Jonathan Gray
svn-id: r9235
2003-07-28rename memory struct as wellJonathan Gray
svn-id: r9234
2003-07-28rename functions with windows specific namesJonathan Gray
svn-id: r9233