@@ -941,15 +941,15 @@ void D3DXRenderBase::overdrawEnd()
941941 CHK_DX (HW.pDevice ->SetRenderState (D3DRS_STENCILFUNC, D3DCMP_EQUAL));
942942 CHK_DX (HW.pDevice ->SetRenderState (D3DRS_STENCILMASK, 0xff ));
943943 // Set the background to black
944- CHK_DX (HW.pDevice ->Clear (0 , 0 , D3DCLEAR_TARGET,D3DCOLOR_XRGB (255 , 0 , 0 ), 0 , 0 ));
944+ CHK_DX (HW.pDevice ->Clear (0 , 0 , D3DCLEAR_TARGET,color_xrgb (255 , 0 , 0 ), 0 , 0 ));
945945 // Draw a rectangle wherever the count equal I
946946 RCache.OnFrameEnd ();
947947 CHK_DX (HW.pDevice ->SetFVF (FVF::F_TL));
948948 // Render gradients
949949 for (int I=0 ; I<12 ; I++)
950950 {
951951 u32 _c = I*256 /13 ;
952- u32 c = D3DCOLOR_XRGB (_c, _c, _c);
952+ u32 c = color_xrgb (_c, _c, _c);
953953 FVF::TL pv[4 ];
954954 pv[0 ].set (float (0 ), float (Device.dwHeight ), c, 0 , 0 );
955955 pv[1 ].set (float (0 ), float (0 ), c, 0 , 0 );
@@ -1031,7 +1031,7 @@ void D3DXRenderBase::Clear()
10311031 }
10321032#else
10331033 CHK_DX (HW.pDevice ->Clear (0 , 0 , D3DCLEAR_ZBUFFER|(psDeviceFlags.test (rsClearBB)?D3DCLEAR_TARGET:0 )|
1034- (HW.Caps .bStencil ?D3DCLEAR_STENCIL:0 ), D3DCOLOR_XRGB (0 , 0 , 0 ), 1 , 0 ));
1034+ (HW.Caps .bStencil ?D3DCLEAR_STENCIL:0 ), color_xrgb (0 , 0 , 0 ), 1 , 0 ));
10351035#endif
10361036}
10371037
@@ -1064,7 +1064,7 @@ void D3DXRenderBase::ClearTarget()
10641064 FLOAT ColorRGBA[4 ] = {0 .0f , 0 .0f , 0 .0f , 0 .0f };
10651065 HW.pContext ->ClearRenderTargetView (RCache.get_RT (), ColorRGBA);
10661066#else
1067- CHK_DX (HW.pDevice ->Clear (0 ,0 ,D3DCLEAR_TARGET,D3DCOLOR_XRGB (0 , 0 , 0 ), 1 , 0 ));
1067+ CHK_DX (HW.pDevice ->Clear (0 ,0 ,D3DCLEAR_TARGET,color_xrgb (0 , 0 , 0 ), 1 , 0 ));
10681068#endif
10691069}
10701070
0 commit comments