EgtGraphics :
- migliorie alle precedenti modifiche.
This commit is contained in:
+2
-2
@@ -308,7 +308,7 @@ AdjustColor( float fCol[4], bool bDark)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
ObjNewGraphics::Draw( int nStat, int nMark, bool bSurfSha, int nAlpha, bool bShowAux)
|
||||
ObjNewGraphics::Draw( int nStat, int nMark, bool bSurfSha, bool bSurf, int nAlpha, bool bShowAux)
|
||||
{
|
||||
if ( ! m_bValid || m_pScene == nullptr || ! m_pScene->MakeCurrent())
|
||||
return false ;
|
||||
@@ -352,7 +352,7 @@ ObjNewGraphics::Draw( int nStat, int nMark, bool bSurfSha, int nAlpha, bool bSho
|
||||
|
||||
// determino se devo scurire il colore wireframe
|
||||
bool bDark = false ;
|
||||
if ( bStdCol && ! bSurfSha) {
|
||||
if ( bStdCol && bSurf && ! bSurfSha) {
|
||||
Color colBT, colBB ;
|
||||
m_pScene->GetBackground( colBT, colBB) ;
|
||||
int nColMid = ( colBT.GetIntIntensity() + colBB.GetIntIntensity()) / 2 ;
|
||||
|
||||
Reference in New Issue
Block a user