From: Jeffrey D. <ha...@us...> - 2003-09-14 00:11:41
|
Log Message: ----------- GKusnick's changes - Decal bar shouldn't play hide and seek anymore Modified Files: -------------- /cvsroot/decaldev/source/Inject: BarLayer.cpp Revision Data ------------- Index: BarLayer.cpp =================================================================== RCS file: /cvsroot/decaldev/source/Inject/BarLayer.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- BarLayer.cpp 30 May 2003 01:49:30 -0000 1.14 +++ BarLayer.cpp 14 Sep 2003 00:11:09 -0000 1.15 @@ -211,6 +211,12 @@ nVariableWidth = 308; int nWidth = sz.cx - ( nVariableWidth + 230 + m_TotalDelta ); + // GKusnick: *Really* make sure the Decal bar is always at least 112 pixels wide. + if (nWidth < 112) + { + nWidth = 112; + m_TotalDelta = sz.cx - (308 + 230 + nWidth); + } RECT rc1 = { 230 + m_TotalDelta, 0, 230 + m_TotalDelta + nWidth, 23 }; m_pSite->put_Position( &rc1 ); |