summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2008-10-05 19:31:26 -0700
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:37 +0200
commit55ddb88c8ecbf0e08fe429a0c3b48c4769217233 (patch)
tree633cb9acde73690e1c164a1ae74142c641b88239
parentebfc59249e9ed75615f89ad12e1fca6503642707 (diff)
Removed D3DOverlayColourControl.
-rw-r--r--src/avp/win95/vision.c1
-rw-r--r--src/avp/win95/vision.h23
-rw-r--r--src/main.c1
3 files changed, 0 insertions, 25 deletions
diff --git a/src/avp/win95/vision.c b/src/avp/win95/vision.c
index ad95ae5..d705783 100644
--- a/src/avp/win95/vision.c
+++ b/src/avp/win95/vision.c
@@ -47,7 +47,6 @@ extern int NormalFrameTime;
extern int GlobalAmbience;
/* JH 29/5/97 - to control how D3D does the lighting */
struct D3DLightColourControl d3d_light_ctrl;
-struct D3DOverlayColourControl d3d_overlay_ctrl;
/*KJL****************************************************************************************
* F U N C T I O N S *
****************************************************************************************KJL*/
diff --git a/src/avp/win95/vision.h b/src/avp/win95/vision.h
index 0e2aa00..998b471 100644
--- a/src/avp/win95/vision.h
+++ b/src/avp/win95/vision.h
@@ -60,29 +60,6 @@ struct D3DLightColourControl
};
extern struct D3DLightColourControl d3d_light_ctrl;
-/* JH 6/4/97 - define a structure to control an alpha channelled coloured overlay */
-//extern D3DINFO d3d;
-//#define d3d_overlays_available ((d3d.ThisDriver.dpcTriCaps.dwSrcBlendCaps & (D3DPBLENDCAPS_SRCALPHA|D3DPBLENDCAPS_INVSRCALPHA))==(D3DPBLENDCAPS_SRCALPHA|D3DPBLENDCAPS_INVSRCALPHA))
-#define d3d_overlays_available 1
-
-enum D3DOCC_Mode
-{
- OCCM_NORMAL, /* default behaviour - all other parms ignored */
- OCCM_ON, /* r,g,b,alpha specify a colour of a light to use instead of white */
-};
-
-struct D3DOverlayColourControl
-{
- enum D3DOCC_Mode ctrl;
-
- /* these should be in [0..255] */
- int r;
- int g;
- int b;
- int alpha;
-};
-
-
/* KJL 17:07:29 10/02/98 - all new vision modes */
enum VISION_MODE_ID
{
diff --git a/src/main.c b/src/main.c
index 11eaa94..5081210 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1260,7 +1260,6 @@ if (AvP_MainMenus())
/* turn off any special effects */
d3d_light_ctrl.ctrl = LCCM_NORMAL;
- d3d_overlay_ctrl.ctrl = OCCM_NORMAL;
SetOGLVideoMode(VideoModeList[CurrentVideoMode].w, VideoModeList[CurrentVideoMode].h);