EgtGraphics :

- migliorie alle precedenti modifiche.
This commit is contained in:
Dario Sassi
2020-11-23 11:45:13 +00:00
parent 3a8cdff937
commit 12ee38faad
9 changed files with 23 additions and 22 deletions
+2 -2
View File
@@ -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 ;