diff options
author | Torbjörn Andersson | 2003-09-23 16:53:25 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-09-23 16:53:25 +0000 |
commit | 4ae1674a443bf9be79f1d25fa4d4d60250484511 (patch) | |
tree | c5e1d5bf52917d7108d5589697626699fd8e9e1b | |
parent | 95a59bd049928dd4eddda8476920e3155e6c2c1d (diff) | |
download | scummvm-rg350-4ae1674a443bf9be79f1d25fa4d4d60250484511.tar.gz scummvm-rg350-4ae1674a443bf9be79f1d25fa4d4d60250484511.tar.bz2 scummvm-rg350-4ae1674a443bf9be79f1d25fa4d4d60250484511.zip |
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
-rw-r--r-- | sword2/driver/_console.cpp | 6 | ||||
-rw-r--r-- | sword2/driver/_console.h | 6 | ||||
-rw-r--r-- | sword2/driver/_mouse.cpp | 59 | ||||
-rw-r--r-- | sword2/driver/_mouse.h | 19 | ||||
-rw-r--r-- | sword2/driver/d_draw.h | 30 | ||||
-rw-r--r-- | sword2/driver/d_sound.h | 4 | ||||
-rw-r--r-- | sword2/driver/driver96.h | 249 | ||||
-rw-r--r-- | sword2/driver/keyboard.cpp | 9 | ||||
-rw-r--r-- | sword2/driver/keyboard.h | 6 | ||||
-rw-r--r-- | sword2/driver/language.cpp | 8 | ||||
-rw-r--r-- | sword2/driver/menu.cpp | 34 | ||||
-rw-r--r-- | sword2/driver/menu.h | 6 | ||||
-rw-r--r-- | sword2/driver/mouse.h | 9 | ||||
-rw-r--r-- | sword2/driver/palette.cpp | 71 | ||||
-rw-r--r-- | sword2/driver/palette.h | 22 | ||||
-rw-r--r-- | sword2/driver/rdwin.h | 11 | ||||
-rw-r--r-- | sword2/driver/render.cpp | 81 | ||||
-rw-r--r-- | sword2/driver/render.h | 27 | ||||
-rw-r--r-- | sword2/driver/sprite.cpp | 198 |
19 files changed, 4 insertions, 851 deletions
diff --git a/sword2/driver/_console.cpp b/sword2/driver/_console.cpp index b33ebed22a..741253055f 100644 --- a/sword2/driver/_console.cpp +++ b/sword2/driver/_console.cpp @@ -26,12 +26,6 @@ // Summary : This module holds the code which controls and displays // the console/debugging window. // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 20-Sep-96 PRP Inital console code. Currently draws the -// background of the console window. Tex -// -// // Functions // --------- // diff --git a/sword2/driver/_console.h b/sword2/driver/_console.h index 8907a00164..83c5c10f53 100644 --- a/sword2/driver/_console.h +++ b/sword2/driver/_console.h @@ -23,12 +23,6 @@ // Created : 19th September 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 20-Sep-96 PRP Internal driver interface to the console -// functions and data. -// -// // Summary : This include file defines links to all data which is // defined in the console.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/_mouse.cpp b/sword2/driver/_mouse.cpp index 14b9df4203..1e2fccb432 100644 --- a/sword2/driver/_mouse.cpp +++ b/sword2/driver/_mouse.cpp @@ -25,65 +25,6 @@ // // Summary : This module holds the interface to the mouse.. // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 18-Sep-96 PRP Initial mouse functions. Simple logging of -// previous 16 mouse events implemented. Mouse -// drawing is currently hard coded, but animations -// will be definable at a later date. -// -// 1.1 03-Oct-96 PRP Changed the mouse position so that mouse y of -// zero is the top left corner of the screen, and -// not the top left corner of the top menubar. -// Also, removed the x and y position from the -// mouse log. And changed the MouseEvent function -// so that it returns a pointer to _mouseEvent -// -// 1.2 04-Oct-96 PRP Put direct path in for ddraw.h -// -// 1.3 31-Oct-96 PRP Added code to draw the proper type of mouse -// sprite, which comprises of the internal -// function DrawMouse and globally available -// AnimateMouse and SetMouseAnim. -// -// 1.4 15-Nov-96 PRP Definition of menubar size is now obtained -// from menu.h -// -// 1.5 18-Nov-96 PRP Changed the direct draw interface to -// IDirectDraw2. -// -// 1.6 25-Nov-96 PRP Added functionality to set the luggage -// sprite. -// -// 1.7 06-Jan-97 PRP Changed the width and height of sprites -// to be signed. -// -// 1.8 14-Jan-97 JEL Reset mouse frame when new animation starts. -// -// 1.9 27-Jan-97 PRP Changed the mouse drawing routines to utilize -// directDraw surfaces and transparency blitting. -// -// 1.10 10-Feb-97 PRP Changed the directDraw error reporting so that -// it works properly. Also, created the mouse -// sprite depending upon whether the hardware can -// blt or not. -// -// 1.11 19-Mar-97 PRP Fixed a bug which was causing the mouse sprite -// to be freed up each frame and therefore -// decompressed and re-loaded each frame. -// -// 1.12 20-Mar-97 PRP Added a function to reset the render code when -// the control panel is entered. -// -// 1.13 09-Apr-97 PRP Made the mouse animation wrap back to the -// seventh frame. -// -// 1.14 10-Apr-97 PRP Added parameter to define whether mouse flashes -// or not. -// -// 1.15 23-Jul-97 JEL Added CheckForMouseEvents() to return no. of events outstanding -// -// // Functions // --------- // diff --git a/sword2/driver/_mouse.h b/sword2/driver/_mouse.h index 290f5caf34..3ab5341ab7 100644 --- a/sword2/driver/_mouse.h +++ b/sword2/driver/_mouse.h @@ -23,15 +23,6 @@ // Created : 18th September 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 18-Sep-96 PRP Internal driver interface to the mouse driver -// functions and data. -// -// 1.1 03-Oct-96 PRP Changed the definition of mousex and y so that -// negative values are allowed. -// -// // Summary : This include file defines links to all data which is // defined in the mouse.c module, but can be accessed by // other parts of the driver96 library. @@ -43,12 +34,10 @@ #ifndef MOUSE_H #define MOUSE_H +extern int16 mousex; // Mouse x coordinate +extern int16 mousey; // Mouse y coordinate -extern int16 mousex; // Mouse x coordinate -extern int16 mousey; // Mouse y coordinate - -extern void LogMouseEvent(uint16 buttons); // Adds a mouse event to the log -extern int32 DrawMouse(void); // Renders the mouse onto the back buffer. - +extern void LogMouseEvent(uint16 buttons); // Adds a mouse event to the log +extern int32 DrawMouse(void); // Renders the mouse onto the back buffer. #endif diff --git a/sword2/driver/d_draw.h b/sword2/driver/d_draw.h index b3f4d04a04..57b83e9c89 100644 --- a/sword2/driver/d_draw.h +++ b/sword2/driver/d_draw.h @@ -23,36 +23,6 @@ // Created : 22nd August 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 16-Sep-96 PRP Interface to the DirectDraw driver functions -// and data. -// -// 1.1 19-Sep-96 PRP Increased scope of directDraw data, such as -// the back buffer object, so that mouse.c can -// have access to the screen. -// -// 1.2 25-Sep-96 PRP Made scrollx and scrolly available to all -// driver code. -// -// 1.3 26-Sep-96 PRP Moved scroll stuff to render.h for clarity. -// -// 1.4 07-Nov-96 PRP Made bFullScreen available to all driver code. -// -// 1.5 18-Nov-96 PRP Added reference to lpDD2 object. -// -// 1.6 24-Jan-97 PRP Added hardware capability bits and defines. -// -// 1.7 06-Mar-97 PRP Changed capability bits, and changed the -// direct draw error reporting call. Added -// function to grab screen shot. -// -// 1.8 16-Jun-97 PSJ Made globall externable to c++. -// -// 1.9 27-Jun-97 PRP Moving the definition of GrabScreenShot to -// driver96.h for external access. -// -// // Summary : This include file defines links to all data which is // defined in the d_draw.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/d_sound.h b/sword2/driver/d_sound.h index f8beeba60a..4555f0e554 100644 --- a/sword2/driver/d_sound.h +++ b/sword2/driver/d_sound.h @@ -23,10 +23,6 @@ // Created : 5th December 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 05-Dec-96 PRP Interface to the DirectSound driver functions -// // Summary : This include file defines links to all data which is // defined in the d_sound.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/driver96.h b/sword2/driver/driver96.h index a0a3d15e5c..da99a0d467 100644 --- a/sword2/driver/driver96.h +++ b/sword2/driver/driver96.h @@ -27,255 +27,6 @@ // driver96 system. All game code which requires driver // functions should simlply include this file. // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 12-Sep-96 PRP Initial drivers include file - with utypes.h! -// -// 1.1 17-Sep-96 PRP screenWide and screenDeep made available to the -// game engine. -// -// 1.2 18-Sep-96 PRP Mouse functions added. The _mouseEvent struct -// is made visible to the game engine, and the -// function prototype for getting a mouse event -// from the queue has been added. Also, filename -// in macro for driver error reporting is fixed. -// -// 1.3 19-Sep-96 PRP Interface to keyboard functions added. Also, -// removed references to bool which is not -// allowed by the cpp compiler. -// -// 1.4 19-Sep-96 PRP Fix definition of MouseEvent() and make the -// rderror variable static. -// -// 1.5 20-Sep-96 PRP Added interface to console functions. -// -// 1.6 23-Sep-96 PRP Removed console functions from drivers! -// -// 1.7 25-Sep-96 PRP Added interface to sprite drawing functions. -// RenderScreen changed so that the drawing offset -// is not passed in. This is now calculated from -// SetScrollTarget, and the number of frames we -// are going to render in the next game cycle. -// -// 1.8 26-Sep-96 PRP Moved the screen drawing and scrolling code -// to render.c for clarity. Changed the mouse -// coordinates to be relative to the top left -// corner of the game screen and removed the mouse -// position from the log. -// -// 1.9 09-Oct-96 PRP Defined SOFTWARE_SCREEN_BUFFER in here so that -// all of the drivers can use it, and the game -// engine will know what's going on! -// -// 1.10 28-Oct-96 PRP DrawSprite has changed. There are now flags to -// describe whether the sprite is compressed, -// transparent or displayed from the top left -// corner of the screen as opposed to the top left -// corner of the background. -// -// 1.11 29-Oct-96 PRP Naming of RDSPR_DISPLAYALIGN fixed in header! -// -// 1.12 01-Nov-96 PRP Added compression type, RDSPR_SPRITECOMPRESSION, -// and increased the size of the parameter passed -// to DrawSprite so up to eight compression types -// can be defined. -// Added functions to mouse.c for animating mouse -// pointers. Interface to functions put in here.. -// -// 1.13 07-Nov-96 PRP Added RDERR_GOFULLSCREEN as a return error for -// creating the primary surface on a screen -// which is not in 8bpp mode. Also, made it so -// sprite drawing is passed a structure with -// all of the sprite parameters in, rather than -// the individual values passed. -// When setting up the screen display/resolution -// you should now specify whether you want the -// game to run in full screen mode or in a window. -// -// 1.14 15-Nov-96 PRP Added menubar code into drivers. -// -// 1.15 21-Nov-96 PRP Changed the interface to the DrawLine function. -// -// 1.16 25-Nov-96 PRP Added a function to set the Luggage animation. -// -// 1.17 25-Nov-96 PRP Added functions to palette.c which create -// match tables, and match rgb values to palette -// indeces - and new error messages -// -// 1.18 26-Nov-96 PRP Added error - RDERR_INVALIDSCALING which will -// be used when sprites are drawn with a scaling -// value outside of the range 0 .. s .. 512 -// -// 1.19 29-Nov-96 PRP Added timing information to be referenced by -// the game engine. Also implemented palette -// fading with new functions added! -// -// 1.20 03-Dec-96 PRP Sound driver functions added. It is now -// possible to play speech. -// -// 1.21 05-Dec-96 PRP BS2_SetPalette changed so that the palette can -// be realized immediately or later when fading -// is called. -// -// 1.22 05-Dec-96 PRP Added sound driver functions for dealing with -// sound fx. -// -// 1.23 09-Dec-96 PRP Changed the UpdatePaletteMatchTable to take -// a pointer rather than a filename. -// -// 1.24 19-Dec-96 PRP Changed the sound system functions to add -// volume and pan position. Also, added a flag -// to the fx player for looping. -// -// 1.25 27-Jan-97 PRP Changed the call to render parallax, to define -// which layer is to be rendered. Also, added -// the RDBLTFX_ equates for how the rendering -// engine works. There are new functions to -// initialise and close the background layers -// which need to be called at the start and end -// of a room. -// -// 1.26 10-Feb-97 PRP Changed the direct draw error reporting calls, -// and added new return error codes. -// -// 1.27 11-Feb-97 PRP Added the blending value into the spriteInfo -// structure. -// -// 1.28 12-Feb-97 PRP Added set and clear blt effects functions. -// -// 1.29 06-Mar-97 PRP Added error return code RDERR_LOCKFAILED for -// failing to lock the front buffer when trying -// to write a screen shot. Also, added definition -// of _pcxHeader. -// -// 1.30 17-Mar-97 PRP Added RDFADE_BLACK as a return value for the -// GetPaletteStatus() function. -// -// 1.31 18-Mar-97 PRP Added InitialiseRenderCycle() to be called -// before the rendering loop is entered. This -// resets the timers. -// -// 1.32 20-Mar-97 PRP Added reference to ResetRenderEngine() to be -// called upon entry to the control panel. -// -// 1.33 24-Mar-97 PRP Added sprite drawing functions for hardware -// utilisation. -// -// 1.34 24-Mar-97 PRP Added return code RDERR_SURFACELOST -// -// 1.35 01-Apr-97 PRP Added new sprite type RDSPR_RLE256FAST -// -// 1.36 04-Apr-97 PRP Changed the prototype for InitialiseWindow. -// -// 1.37 07-Apr-97 PRP Added function prototypes and error values -// for the switching between the hardware and -// software renderers. -// -// 1.38 07-Apr-97 PRP Added function prototypes and error values -// for the shadow masking engine. -// -// 1.39 08-Apr-97 PRP Added reference to PlaySmacker() -// -// 1.40 09-Apr-97 PRP Added references to the functions which play music -// streaming it from the CD. -// -// 1.41 10-Apr-97 PRP Added defines for mouse flashing or not. Also -// changed function call to SetMouseAnim to -// include this parameter. -// -// 1.42 11-Apr-97 PRP EraseSoftwareScreenBuffer added. -// -// 1.43 11-Apr-97 JEL In render.c changed EraseSoftwareRenderBuffer to EraseSoftwareScreenBuffer -// -// 1.44 11-Apr-97 CJR Added palCopy definition for use in game engine. -// -// 1.45 22-Apr-97 PRP Added decompression error return value. -// -// 1.46 28-Apr-97 PSJ Added members to _wavHeader structure. -// -// 1.47 21-May-97 PRP Added the _movieTextObject data structure. This will -// be used in the call to PlaySmacker to define if there is any -// text to be displayed and when. -// -// 1.48 21-May-97 PRP Fixed the pointer to the text sprite within the movie -// text object structure. -// -// 1.49 22-May-97 JEL Fixed PlaySmacker for a movieTextObject parameter of NULL -// -// 1.50 29-May-97 PSJ Added the _drvStatus data structure. This will allow the -// state of all the drivers globals to be passed between dlls, -// exectuables and threads. -// -// 1.51 29-May-97 PSJ Added the _drvSoundStatus data structure and move _drvStatus to _drvDrawStatus. -// This will allow the state of the drivers drawing globals and audio globals to -// be passed between dlls, exectuables and threads. -// Also included ddraw.h dsound.h and mmsystem.h in this file. -// -// 1.52 29-May-97 PRP Added reference to the DisableQuitKey function, -// which removes the ability to press control-Q to quit -// the game. -// -// 1.53 04-Jun-97 PRP Changed the funtion call to PlaySmacker. Now includes -// a wav to lead out at the end of the smack file. -// -// 1.55 06-Jun-97 PSJ Added GetFxVolume and SetFxVolume for fx master volume control. -// Added GetSpeechVolume and SetSpeechVolume for speech master volume. -// -// 1.56 09-Jun-97 PSJ Added GetMusicVolume and SetMusicVolume. -// -// 1.57 10-Jun-97 PSJ Added MuteMusic, MuteFx, MuteSpeech, IsMusicMute, IsFxMute and Is SpeechMute -// -// 1.58 12-Jun-97 PSJ Added PlayCompSpeech to load and play a compressed wave. -// -// 1.59 12-Jun-97 PSJ Added GetRenderType to return the type of rendering -// currently being used. -// -// 1.60 13-Jun-97 PRP Added functions to set and clear shadow mask status. -// -// 1.61 26-Jun-97 PSJ Added AmISpeaking to check for lip syncing spots in the speech. -// Also added RDSE_QUIET and RDSE_SPEAKING as return values. -// -// 1.62 26-Jun-97 PSJ Added PauseSpeech and UnpauseSpeech. -// -// 1.63 26-Jun-97 PRP Added DimPalette. -// -// 1.64 27-Jun-97 PRP Moved definition of GrabScreenShot in from -// d_draw.h -// -// 1.65 15-Jul-97 PRP Added functions to pause and unpause speech. -// -// 1.66 16-Jul-97 PRP Added a speech pointer to the movieTextObject structure. -// -// 1.67 16-Jul-97 PSJ Added GetCompSpeechSize and PreFetchSpeech -// -// 1.68 21-Jul-97 PRP Added new FX type for sequence lead in and new function -// to pause sound effects apart from the lead in music. -// -// 1.73 22-Jul-97 PRP Added define to ensure DirectX 3.0 functionality used -// under DirectX 5.0 drivers :) -// -// 1.74 23-Jul-97 JEL Added CheckForMouseEvents() to return no. of events outstanding -// -// 1.75 30-Jul-97 PSJ Added MusicTimeRemaining() to return time left for current tune. -// -// 1.77 06-Aug-97 PSJ Updated Get and Set scroll SoundStatus. -// -// 1.78 07-Aug-97 PSJ Added SetWindowName to set the name of the window. -// -// 1.79 12-Aug-97 PSJ Added ReverseStereo. -// -// 1.80 13-Aug-97 PRP Added CloseMenuImmediately. -// -// 1.81 13-Aug-97 PSJ Added GetKeyStatus -// -// 1.82 13-Aug-97 PRP Added IsFxOpen. -// -// 1.83 15-Aug-97 PRP SetFxVolumePan added to update a sample on the fly. -// -// 1.84 15-Aug-97 PRP SetFxIdVolume added. -// -// 1.85 22-Aug-97 PSJ Added type RDSE_LEADOUT -// // Functions // --------- // diff --git a/sword2/driver/keyboard.cpp b/sword2/driver/keyboard.cpp index 0297b8073d..7de0225c1a 100644 --- a/sword2/driver/keyboard.cpp +++ b/sword2/driver/keyboard.cpp @@ -25,15 +25,6 @@ // // Summary : This module holds the interface to the keyboard // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 19-Sep-96 PRP Keyboard functions. Simple logging of -// previous 32 keys pressed. -// -// 1.1 19-Sep-96 PRP Fixed bug, ReadKey did not return RD_OK. -// -// 1.2 13-Aug-97 PSJ Added GetKeyStatus -// // Functions // --------- // diff --git a/sword2/driver/keyboard.h b/sword2/driver/keyboard.h index 458438d795..b243a485b7 100644 --- a/sword2/driver/keyboard.h +++ b/sword2/driver/keyboard.h @@ -23,12 +23,6 @@ // Created : 19th September 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 19-Sep-96 PRP Internal driver interface to the keyboard driver -// functions and data. -// -// // Summary : This include file defines links to all data which is // defined in the keyboard.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/language.cpp b/sword2/driver/language.cpp index f3ea54674f..41db961d9b 100644 --- a/sword2/driver/language.cpp +++ b/sword2/driver/language.cpp @@ -26,14 +26,6 @@ // Summary : This module holds the functions which govern which language // version is current. // -// -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 16-Sep-96 PRP Initial language version control functions. -// Many of the functions are currently stubs, and -// this will be addressed shortly. -// -// // Functions // --------- // diff --git a/sword2/driver/menu.cpp b/sword2/driver/menu.cpp index 272020433c..7a3647fa43 100644 --- a/sword2/driver/menu.cpp +++ b/sword2/driver/menu.cpp @@ -25,40 +25,6 @@ // // Summary : This module holds the code for the driver96 menu system. // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 15-Nov-96 PRP Initial Menu functions. -// -// 1.1 20-Nov-96 PRP Fixed the displaying of the bottom menu. -// -// 1.2 08-Nov-96 PRP Made the speed of the menubar dependent upon -// the number of icons displayed. -// -// 1.3 24-Jan-97 PRP Changed the creation of menu icon sprite -// surfaces depending upon whether the hardware -// can stretch blit or not. Also, made it so -// that the full size icon sprite is not stretch -// blitted. -// -// 1.4 10-Feb-97 PRP Changed the creation of menu icon sprite -// surfaces as the capability bits for the drivers -// have been changed. Also, changed the error -// reporting code (for directDraw) so that it -// works. -// -// 1.5 04-Mar-97 PRP Tried to fix bug where running out of video -// memory creating menubar icon surfaces. -// -// 1.6 16-Apr-97 PRP Got rid of bug where task switching causes -// failure of icon draw. -// -// 1.7 23-Jul-97 PRP Checked error value of stretched blit. -// -// 1.8 13-Aug-97 PRP Added CloseMenuImmediately. -// -// 1.9 13-Aug-97 PRP Fixed spelling of above -// -// // Functions // --------- // diff --git a/sword2/driver/menu.h b/sword2/driver/menu.h index de0830030e..8e44d9a28f 100644 --- a/sword2/driver/menu.h +++ b/sword2/driver/menu.h @@ -23,12 +23,6 @@ // Created : 15th November 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 15-Nov-96 PRP Internal driver interface to the menu driver -// functions and data. -// -// // Summary : This include file defines links to all data which is // defined in the menu.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/mouse.h b/sword2/driver/mouse.h index 290f5caf34..e7443a660a 100644 --- a/sword2/driver/mouse.h +++ b/sword2/driver/mouse.h @@ -23,15 +23,6 @@ // Created : 18th September 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 18-Sep-96 PRP Internal driver interface to the mouse driver -// functions and data. -// -// 1.1 03-Oct-96 PRP Changed the definition of mousex and y so that -// negative values are allowed. -// -// // Summary : This include file defines links to all data which is // defined in the mouse.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/palette.cpp b/sword2/driver/palette.cpp index 7b3b7820c5..3de703336e 100644 --- a/sword2/driver/palette.cpp +++ b/sword2/driver/palette.cpp @@ -26,77 +26,6 @@ // Summary : This module holds the palette functions and the interface // to the directDraw palette. // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 16-Sep-96 PRP Currently holds the palette setting code. Will -// be modified so that the calling functions have -// to use the correct palette format, and the -// fading code will be added. -// -// 1.1 17-Sep-96 PRP Removed utypes.h from include list. -// -// 1.2 03-Oct-96 PRP Changed the palette format to RGBA 0-255. -// -// 1.3 04-Oct-96 PRP No changes -// -// 1.4 04-Oct-96 PRP Put direct path in for ddraw.h -// -// 1.5 08-Nov-96 PRP Created a drivers copy of the palette so that -// it can be restored at any time without the -// game engine having to worry about things. -// Currently, there is different code for setting -// the palette in full screen and windowed mode -// until I can get windowed mode working. -// -// 1.6 09-Nov-96 PRP More work to get the palette to work propery -// in windowed mode. -// -// 1.7 22-Nov-96 PRP Made the whole of the palette available to -// the rest of the driver96 code. -// -// 1.8 25-Nov-96 PRP Added a function to create a palette match -// table from the current palette. -// -// 1.9 29-Nov-96 PRP Made the QuickMatch function __inline for -// speed - but didn't work. Added functions -// to fade the palette up and down. -// -// 1.10 05-Dec-96 PRP Added a flag to BS2_SetPalette so that the palette -// can be set immediately or later by the fade. -// -// 1.11 06-Dec-96 JEL fadeStatus now initialised to 0 -// -// 1.12 09-Dec-96 PRP Function UpdatePaletteMatchTable() changed so -// that the data can be part of another file. -// -// 1.13 10-Feb-97 PRP Changed the direct draw error reporting calls. -// -// 1.14 11-Feb-97 PRP Suspended the fade server if the direct draw -// palette object does not exist. -// -// 1.15 17-Mar-97 PRP Added RDFADE_BLACK as a return value so the -// engine knows the state of the palette when -// there is no fade. -// -// 1.16 17-Mar-97 PRP Fixed driver bug which caused FadeUp to fail -// becuase of the introduction of RDFADE_BLACK. -// -// 1.17 26-Jun-97 PRP Added a function to darken the palette for pausing. -// -// 1.18 26-Jun-97 PRP Forgot to return a value. -// -// 1.19 26-Jun-97 PRP Forgot to set the palette - DOH! -// -// 1.20 26-Jun-97 PRP Fixed undefined symbols bugs. -// -// 1.21 09-Jul-97 JEL Fixed palette dimming - to unsigned rather than signed RGB values! -// -// 1.22 26-Jun-97 JEL BS2_SetPalette now always sets colour 0 to black so doesn't need setting to black from game engine -// -// 1.23 10-Jul-97 JEL Nothing changed but new version had to be booked in anyway. -// -// 1.24 10-Jul-97 JEL BS2_SetPalette doesn't do that any more (see above)! -// // Functions // --------- // diff --git a/sword2/driver/palette.h b/sword2/driver/palette.h index ab6d194126..7776ad27b6 100644 --- a/sword2/driver/palette.h +++ b/sword2/driver/palette.h @@ -23,28 +23,6 @@ // Created : 8th November 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 08-Nov-96 PRP Internal driver interface to the palette -// functions and data. -// -// 1.1 11-Nov-96 PRP Added internal driver reference for -// RestorePalette which should be called by the -// windows message handler whenever the window -// has been minimised/maximised. -// -// 1.2 22-Nov-96 PRP Made the palette available to the rest of the -// driver96 library. -// -// 1.3 29-Nov-96 PRP Made paletteMatch table available to other -// parts of the driver library. Also, made the -// FadeServer available for the windows module -// to have access. -// -// 1.4 11-Apr-97 CJR Moved palCopy to driver96.h for use in the -// game engine. -// -// // Summary : This include file defines links to all data which is // defined in the palette.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/rdwin.h b/sword2/driver/rdwin.h index 271b313ad7..9d83583f4b 100644 --- a/sword2/driver/rdwin.h +++ b/sword2/driver/rdwin.h @@ -23,17 +23,6 @@ // Created : 20th August 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 16-Sep-96 PRP Driver interface to the rdwin functions/data -// -// 1.1 07-Nov-96 PRP Added debug windows message handler, and RECT -// defining the size of the current window. -// -// 1.2 04-Apr-97 PRP Oops - no changes -// -// -// // Summary : This include file defines links to all data which is // defined in the rdwin.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/render.cpp b/sword2/driver/render.cpp index 9db66a36b1..d7db73e5b6 100644 --- a/sword2/driver/render.cpp +++ b/sword2/driver/render.cpp @@ -27,87 +27,6 @@ // the background and parallax layers, and controlling the // speed of the scroll (number of frames) // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 26-Sep-96 PRP The functions have been moved here from d_draw -// because this is a more sensible place for them. -// -// 1.1 04-Oct-96 PRP Added direct path to ddraw.h -// -// 1.2 09-Oct-96 PRP Moved SOFTWARE_SCREEN_BUFFER into driver96.h, -// and renamed to RD_SOFTWARESCREENBUFFER. -// -// 1.3 23-Oct-96 PRP Moved definition of _parallaxLine structure to -// render.h. Got rid of the divide by zero error. -// -// 1.4 05-Nov-96 PRP Moved defines of RENDERWIDE, RENDERDEEP, etc., -// to render.h -// -// 1.5 15-Nov-96 PRP Definition of menu size is now obtained from -// menu.h -// -// 1.6 18-Nov-96 PRP Changed the direct draw interface to -// IDirectDraw2. Added the PlotPoint and -// DrawLine functions. -// -// 1,7 21-Nov-96 PRP Implemented the DrawLine function. -// -// 1.8 24-Jan-97 PRP Added parallaxScrollx and parallaxScrolly to -// define the offset for linking sprites to -// parallax layers. -// -// 1.9 06-Feb-97 PRP Added rendering functions to draw from display -// memory. Made the code switchable so that if -// the hardware is not available, the old software -// rendering functions are used. -// -// 1.10 06-Feb-97 PRP Fixed a bug with releasing the surfaces for a -// room. -// -// 1.11 06-Feb-97 PRP Implemented PlotPoint and DrawLine for hardware -// version. -// -// 1.12 07-Feb-97 PRP Implemented function to restore the background -// layers. Changed the layer rendering code to -// restore the layers when they've gone. -// -// 1.13 07-Feb-97 PRP Fixed a bug in the layer renderer, which -// dropped out when the first block in a layer was -// blank. -// -// 1.14 10-Feb-97 PRP Changed the calls to the direct draw error -// reporting code, and made the rendering dependant -// upon the hardware functions availability. -// -// 1.15 12-Feb-97 PRP Fixed rendering position bug. -// -// 1.16 18-Mar-97 PRP Fixed the smooth scroll, and render timing. -// Added a function to initialise the render timer -// -// 1.17 18-Mar-97 PRP Added code to profile the rendering functions. -// -// 1.18 04-Apr-97 PRP Restored the primary surface and back buffer -// before the parallax layers. -// -// 1.19 07-Apr-97 PRP No changes. -// -// 1.20 08-Apr-97 JEL Made location wide and location deep global. -// -// 1.21 10-Apr-97 PRP Added the return value RDERR_LOCKFAILED to -// the CopyScreenBuffer function. -// -// 1.22 11-Apr-97 PRP Added function to clear the software render -// buffer. -// -// 1.23 11-Apr-97 PRP Fixed benign redefinition of type bug -// -// 1.24 13-Jun-97 PRP Fixed switching between hardware and software -// rendering during gameplay. -// -// 1.25 30-Jun-97 JEL Tried to fix sc23 sprite position bug, but no changes made in the end -// -// 1.26 08-July-97 JEL Fixed bug in RenderParallax for when not gotTheFocus, to prevent crash when switching task in NT -// // Functions // --------- // diff --git a/sword2/driver/render.h b/sword2/driver/render.h index afae35874d..98d6b4fafe 100644 --- a/sword2/driver/render.h +++ b/sword2/driver/render.h @@ -23,33 +23,6 @@ // Created : 26th August 1996 // By : P.R.Porter // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 16-Sep-96 PRP Interface to the current scroll position. -// -// 1.1 23-Oct-96 PRP Added definition of _parallaxLine structure. -// -// 1.2 05-Nov-96 PRP Added definition of myScreenBuffer. -// -// 1.3 06-Nov-96 PRP Fixed definition of myScreenBuffer. -// -// 1.4 15-Nov-96 PRP Definition of menubar size removed, and put -// into menu.h -// -// 1.5 24-Jan-97 PRP Added references to parallaxScrollx and -// parallaxScrolly. These are used by the sprite -// drawing code to link sprites to parallax -// layers. -// -// 1.6 19-Mar-97 PRP Added profiling flag for testing purposes. -// -// 1.7 24-Mar-97 PRP Turned profiling off -// -// 1.8 08-Apr-97 JEL Made locationWide and locationDeep accessible -// to other drivers. -// -// -// // Summary : This include file defines links to all data which is // defined in the render.c module, but can be accessed by // other parts of the driver96 library. diff --git a/sword2/driver/sprite.cpp b/sword2/driver/sprite.cpp index a74e7bab23..93d0d4d93c 100644 --- a/sword2/driver/sprite.cpp +++ b/sword2/driver/sprite.cpp @@ -25,204 +25,6 @@ // // Summary : This module holds the sprite drawing functions. // -// Version Date By Description -// ------- --------- --- ----------------------------------------------- -// 1.0 25-Sep-96 PRP Blits full sprites only. Attempting to draw -// any other type of sprite will return an error -// code. Also, scroll target position is handled -// here -// -// 1.1 26-Sep-96 PRP Added include file render.h for link to scroll -// position. -// -// 1.2 04-Oct-96 PRP Added direct path to ddraw.h -// -// 1.3 09-Oct-96 PRP Made the sprite drawing routines write to either -// the screen buffer or video memory. -// -// 1.4 23-Oct-96 PRP Added the ability to draw a transparent sprite, -// i.e. one with holes in. (with clipping and -// everything) -// -// 1.5 29-Oct-96 PRP Sprite drawing greatly improved. We can now -// combine flags to define whether the sprite is -// compressed, transparent or aligned to the -// top corner of the monitor, as well as adding -// a flag for fx. -// -// 1.6 29-Oct-96 PRP Fixed drawing of sprites with the display align -// bit set in type. -// -// 1.7 29-Oct-96 PRP Made it so that when RDSPR_DISPLAYALIGN is -// combined with RDSPR_TRANS the sprite is drawn -// in the correct place. -// -// 1.8 31-Oct-96 PRP Fixed bug in sprite width calculation. -// -// 1.9 01-Nov-96 PRP Fixed transparent sprite clipping at the bottom -// -// 1.10 01-Nov-96 PRP Added RDSPR_SPRITECOMPRESSION to the attributes -// which may be passed into DrawSprite, and -// implemented a basic decompression piece of code -// which is currently very slooowwww. -// -// 1.11 05-Nov-96 PRP RENDERWIDE and RENDERDEEP now defined in -// render.h -// -// 1.12 06-Nov-96 PRP Fixed clipping for RDSPR_DISPLAYALIGN sprites. -// -// 1.13 08-Nov-96 PRP Added decompression for types RDSPR_RLE256 and -// RDSPR_RLE16. Also changed the format of -// DrawSprite() so that the details required by -// it are passed in a structure. -// -// 1.14 12-Nov-96 PRP Enabled drawing of flipped sprites. This is -// only possible for sprites which are compressed -// and not drawn with DISPLAYALIGN -// -// 1.15 15-Nov-96 PRP Size of menubar moved to menu.h -// -// 1.16 21-Nov-96 PRP Implemented scaling for sprites - only certain -// types mind. -// -// 1.17 25-Nov-96 PRP Removed the second displayed sprite to compare -// the anti-aliasing code. -// -// 1.18 25-Nov-96 PRP Removed the ColourMatch function which only -// worked on a reduced sub-set of the palette, -// and replaced it with QuickMatch in palette.c. -// -// 1.19 26-Nov-96 PRP Implemented scaling of sprites which are -// larger than their original size. -// -// 1.20 27-Nov-96 PRP Fixed the problem with displaying sprites which -// are transparent, uncompressed and display -// aligned. (James will be happy) -// -// 1.21 02-Dec-96 PRP Implemented sprites which blend with the -// background. -// -// 1.22 18-Dec-96 PRP Moved origin of sprites which are not transparent -// and display aligned. -// -// 1.23 09-Jan-97 PRP Display align clipping fixed for sprites which -// are completely off the screen. -// -// 1.24 24-Jan-97 PRP Added an offset to a sprite's x and y position -// depending upon where the latest parallax layer -// was with reference to the background position. -// -// 1.25 28-Jan-97 PRP Updated sprite drawing code to utilise hardware -// blitting where available. -// -// 1.26 06-Feb-97 PRP Fixed drawing of sprites after video memory -// is full up. -// -// 1.27 10-Feb-97 PRP Changed direct draw error reporting function -// calls. -// -// 1.28 11-Feb-97 PRP Implemented blending of sprites - depending -// upon values passed in by spriteInfo. -// -// 1.29 12-Feb-97 PRP Fixed the blended sprite rendering position -// bug. -// -// 1.30 12-Feb-97 PRP Changed the rendering code for blended sprites -// in ALLHARDWARE mode. -// -// 1.31 19-Mar-97 PRP Added CreateSurface, DrawSurface and, you -// guessed it, DeleteSurface functions. -// Added temporary profiling code to optimise -// sprite drawing. -// Implemented sprite compression, and drawing -// whilst decompressing code for sprite -// optimisation -// -// 1.32 24-Mar-97 PRP Fixed DrawSurface so that it returns an error -// code if the surface has been lost. -// -// 1.33 25-Mar-97 PRP Initialised freeSprite in the create surface -// function. -// -// 1.34 27-Mar-97 PRP Further optimisation of different types -// of sprites. New sprite compression type -// RDSPR_RLE256FAST which decompresses and -// draws at the same time. This type should -// be used for static 256 colour transparent -// sprites. -// -// 1.35 01-Apr-97 PRP Got rid of the RDSPR_LAYERCOMPRESSION -// sprite type. -// -// 1.36 01-Apr-97 PRP Made transparent sprites stippled when -// hardware acceleration is used. -// -// 1.37 01-Apr-97 PRP Fixed the bug which was tring to anti-alias -// sprites which were not over the screen area. -// -// 1.38 07-Apr-97 PRP Added code which looks at the light mask -// and renders George accordingly. -// -// 1.38 08-Apr-97 PRP Added code to decompress the light mask! -// -// 1.38 08-Apr-97 JEL Added another instance of light mask check. -// -// 1.39 08-Apr-97 JEL Changed screenWide to locationWide -// -// 1.40 09-Apr-97 PRP Fixed bug with fast draw not clipping -// correctly on the left edge. Now it does :) -// -// 1.41 09-Apr-97 PRP Added shadow layer effects for sprites which -// are not scaled, but have the RDSPR_SHADOW -// flag set. -// -// 1.42 09-Apr-97 JEL No changes. -// -// 1.43 09-Apr-97 PRP Fixed bug. Shadow mask was being referenced -// from the top of the screen, rather than the -// top of the background!!! -// -// 1.44 09-Apr-97 JEL Changed starty to scrolly for driver bug. -// -// 1.45 22-Apr-97 PRP Added return values for decompression code. -// -// 1.46 24-Apr-97 JEL Fixed the decompression choice code. -// -// 1.47 28-May-97 CJR Added more information to the Direct draw -// errors. -// -// 1.48 13-Jun-97 PRP Enabled the shadow mask when the arithmetic -// stretching and anti-aliasing is switched off. -// -// 1.49 13-Jun-97 PRP Made use of shadow mask independently switchable. -// -// 1.50 07-Jul-97 PRP Fixed a bug with the offset of sprites which are -// not compressed. -// -// 1.51 23-Jul-97 PRP Checked src colour key blitting flag before creating -// a surface in video memory -// -// 1.52 31-Jul-97 PRP Only allowed shadow masks to affect the sprite palette. -// -// 1.53 31-Jul-97 PRP Fixed a bug with the above change. Non sprite -// palette sprites were not being drawn, but are now :) -// -// 1.54 31-Jul-97 PRP Fixed the black box from around shadow sprites. -// -// 1.55 31-Jul-97 JEL Fixed the bug of transparent sprites suddenly printing in wrong position! -// -// 1.56 01-Aug-97 PRP Tried to fix the corruption at the end of stippled sprites. -// -// 1.57 01-Aug-97 PRP Replaced algorithm to fix corruption at end of stippled sprites. -// -// 1.58 01-Aug-97 PRP Removed the shitty sprite palette fix (1.52) -// -// 1.60 27-Aug-97 PRP Changed the drawing of transparent sprites so that -// the uncompressed sprites display properly. -// -// 1.61 02-Sep-97 CJR Changed the Decompression code to return an error before causing -// an access violation. -// // Functions // --------- // |