mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Cosmetics.
This commit is contained in:
parent
02cb035768
commit
ff5435ff67
@ -2,7 +2,7 @@
|
|||||||
#define __TRACYIMGUI_HPP__
|
#define __TRACYIMGUI_HPP__
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# pragma warning( disable: 4244 ) // conversion from don't care to whatever, possible loss of data
|
# pragma warning( disable: 4244 ) // conversion from don't care to whatever, possible loss of data
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@ -193,7 +193,7 @@ namespace tracy
|
|||||||
|
|
||||||
const auto manhatten_distance = x0 + flipped_v0y;
|
const auto manhatten_distance = x0 + flipped_v0y;
|
||||||
const auto in_multiples_of_2_times_sw = int( manhatten_distance / ( sw*2 ) );
|
const auto in_multiples_of_2_times_sw = int( manhatten_distance / ( sw*2 ) );
|
||||||
|
|
||||||
const auto floored_manhatten_distance = double( in_multiples_of_2_times_sw*sw*2 ); //floor in terms of 2 * stripe width
|
const auto floored_manhatten_distance = double( in_multiples_of_2_times_sw*sw*2 ); //floor in terms of 2 * stripe width
|
||||||
|
|
||||||
const auto corrected_flipped_v0y = ( floored_manhatten_distance - x0 ); //the corrected (floored) y respects the position of the stripes
|
const auto corrected_flipped_v0y = ( floored_manhatten_distance - x0 ); //the corrected (floored) y respects the position of the stripes
|
||||||
|
|||||||
@ -311,5 +311,4 @@ out:
|
|||||||
return TokenColor::Default;
|
return TokenColor::Default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user