| 118 | } |
| 119 | |
| 120 | int CNodeBase::AddAddressOffset( const PVIEWINFO View, int x, int y ) |
| 121 | { |
| 122 | if (g_bOffset) |
| 123 | { |
| 124 | #ifdef _WIN64 |
| 125 | // goto 722 |
| 126 | // just the left side 0000 |
| 127 | // TODO: fix the ghetto rig FontWidth * x |
| 128 | // where x = characters over 8 |
| 129 | //x += FontWidth; // we need this either way |
| 130 | //int numdigits = Utils::NumDigits(View->Address); |
| 131 | //if (numdigits < 8 && numdigits > 4) |
| 132 | // x -= ((8 - numdigits) * FontWidth); |
| 133 | //if (numdigits > 8) |
| 134 | // x += ((numdigits - 8) * FontWidth); |
| 135 | |
| 136 | x = AddText( View, x, y, g_crOffset, HS_NONE, _T( "%0.4X" ), m_Offset ) + g_FontWidth; |
| 137 | #else |
| 138 | x = AddText( View, x, y, g_crOffset, HS_NONE, _T( "%0.4X" ), m_Offset ) + g_FontWidth; |
| 139 | #endif |
| 140 | } |
| 141 | |
| 142 | if (g_bAddress) |
| 143 | { |
| 144 | #ifdef _WIN64 |
| 145 | x = AddText( View, x, y, g_crAddress, HS_ADDRESS, _T( "%0.9I64X" ), View->Address + m_Offset ) + g_FontWidth; |
| 146 | #else |
| 147 | x = AddText( View, x, y, g_crAddress, HS_ADDRESS, _T( "%0.8X" ), View->Address + m_Offset ) + g_FontWidth; |
| 148 | #endif |
| 149 | } |
| 150 | |
| 151 | return x; |
| 152 | } |
| 153 | |
| 154 | void CNodeBase::AddSelection( const PVIEWINFO View, int x, int y, int Height ) |
| 155 | { |
nothing calls this directly
no outgoing calls
no test coverage detected