diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-14 14:53:25 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-14 14:55:05 +0300 |
commit | 0bb0c10e3c10adc6a0de3687e22ca3455acc19c5 (patch) | |
tree | 566860ffbebb47bc31b3a3e8d0ecdc0a00dfbced /server/TracyView.cpp | |
parent | 3996516fcebdf76e2171a8fef7863f2a7e071e94 (diff) |
Revert "Save one byte on ContextSwitchData."
Counting bits is hard, let's go shopping.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r-- | server/TracyView.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 758a959a..558b3a41 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2349,12 +2349,12 @@ void View::DrawContextSwitches( const ContextSwitch* ctx, bool hover, double pxn { TextFocused( "CPU:", RealToString( ev.cpu, true ) ); } - TextFocused( "Wait reason:", DecodeContextSwitchReasonCode( ContextSwitchData::Reason( *pit ) ) ); + TextFocused( "Wait reason:", DecodeContextSwitchReasonCode( pit->reason ) ); ImGui::SameLine(); - TextDisabledUnformatted( DecodeContextSwitchReason( ContextSwitchData::Reason( *pit ) ) ); - TextFocused( "Wait state:", DecodeContextSwitchStateCode( ContextSwitchData::State( *pit ) ) ); + TextDisabledUnformatted( DecodeContextSwitchReason( pit->reason ) ); + TextFocused( "Wait state:", DecodeContextSwitchStateCode( pit->state ) ); ImGui::SameLine(); - TextDisabledUnformatted( DecodeContextSwitchState( ContextSwitchData::State( *pit ) ) ); + TextDisabledUnformatted( DecodeContextSwitchState( pit->state ) ); ImGui::EndTooltip(); if( ImGui::IsMouseClicked( 2 ) ) |