Skip to content

Commit 86c8675

Browse files
committed
xrGame: D3DCOLOR_RGBA() replaced by color_rgba().
1 parent 79c9582 commit 86c8675

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/xrGame/HUDTarget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
#include <ai/monsters/poltergeist/poltergeist.h>
2424

2525

26-
u32 C_ON_ENEMY D3DCOLOR_RGBA(0xff,0,0,0x80);
27-
u32 C_ON_NEUTRAL D3DCOLOR_RGBA(0xff,0xff,0x80,0x80);
28-
u32 C_ON_FRIEND D3DCOLOR_RGBA(0,0xff,0,0x80);
26+
u32 C_ON_ENEMY color_rgba(0xff,0,0,0x80);
27+
u32 C_ON_NEUTRAL color_rgba(0xff,0xff,0x80,0x80);
28+
u32 C_ON_FRIEND color_rgba(0,0xff,0,0x80);
2929

3030

31-
#define C_DEFAULT D3DCOLOR_RGBA(0xff,0xff,0xff,0x80)
31+
#define C_DEFAULT color_rgba(0xff,0xff,0xff,0x80)
3232
#define C_SIZE 0.025f
3333
#define NEAR_LIM 0.5f
3434

src/xrGame/IKFoot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ bool CIKFoot::GetFootStepMatrix( ik_goal_matrix &m, const Fmatrix &g_anim, const
374374
#ifdef DEBUG
375375
if(ph_dbg_draw_mask.test( phDbgDrawIKGoal ))
376376
{
377-
DBG_DrawPoint( global_point, 0.03f, D3DCOLOR_RGBA( 255, 0, 0, 255 ) );
377+
DBG_DrawPoint( global_point, 0.03f, color_rgba( 255, 0, 0, 255 ) );
378378
}
379379
if(!fsimilar( _abs( DET( g_anim ) - 1.f ), _abs( DET( m.get() ) - 1.f ), 0.001f ) )
380380
Msg("scale g_anim: %f scale m: %f ", DET( g_anim ) , DET( m.get() ) );

src/xrGame/ai/stalker/ai_stalker_debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ void CAI_Stalker::dbg_draw_vision ()
966966
string64 out_text;
967967
xr_sprintf (out_text,"%.2f",object ? object->m_value : 0.f);
968968

969-
UI().Font().pFontMedium->SetColor (D3DCOLOR_RGBA(255,0,0,95));
969+
UI().Font().pFontMedium->SetColor (color_rgba(255,0,0,95));
970970
UI().Font().pFontMedium->OutSet (x,y);
971971
UI().Font().pFontMedium->OutNext (out_text);
972972
}

0 commit comments

Comments
 (0)