fix shaking XYWnd::XY_DrawAxis position
This commit is contained in:
parent
4b1b789fa8
commit
b3154d301e
|
|
@ -1403,8 +1403,8 @@ void XYWnd::XY_DrawAxis( void ){
|
||||||
const char g_AxisName[3] = { 'X', 'Y', 'Z' };
|
const char g_AxisName[3] = { 'X', 'Y', 'Z' };
|
||||||
const int nDim1 = ( m_viewType == YZ ) ? 1 : 0;
|
const int nDim1 = ( m_viewType == YZ ) ? 1 : 0;
|
||||||
const int nDim2 = ( m_viewType == XY ) ? 1 : 2;
|
const int nDim2 = ( m_viewType == XY ) ? 1 : 2;
|
||||||
const int w = ( m_nWidth / 2 / m_fScale );
|
const float w = ( m_nWidth / 2 / m_fScale );
|
||||||
const int h = ( m_nHeight / 2 / m_fScale );
|
const float h = ( m_nHeight / 2 / m_fScale );
|
||||||
|
|
||||||
Vector3 colourX = ( m_viewType == YZ ) ? g_xywindow_globals.AxisColorY : g_xywindow_globals.AxisColorX;
|
Vector3 colourX = ( m_viewType == YZ ) ? g_xywindow_globals.AxisColorY : g_xywindow_globals.AxisColorX;
|
||||||
Vector3 colourY = ( m_viewType == XY ) ? g_xywindow_globals.AxisColorY : g_xywindow_globals.AxisColorZ;
|
Vector3 colourY = ( m_viewType == XY ) ? g_xywindow_globals.AxisColorY : g_xywindow_globals.AxisColorZ;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user