File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
#include " Geometry.h"
2
2
3
+ #include < cmath>
4
+
3
5
#include " common/Assert.h"
4
6
5
7
#include " engine/Engine.h"
@@ -403,11 +405,7 @@ void Geometry::UpdateEffectiveArea() {
403
405
}
404
406
405
407
if ( effective_area != m_effective_area ) {
406
- // TODO: get rid of std::round, maybe change ui coords to fixed numbers?
407
408
const bool should_resize = std::round ( effective_area.width ) != std::round ( m_effective_area.width ) || std::round ( effective_area.height ) != std::round ( m_effective_area.height );
408
- if ( should_resize && m_on_resize ) {
409
- int a = 5 ;
410
- }
411
409
m_effective_area = effective_area;
412
410
if ( should_resize && m_on_resize ) {
413
411
m_on_resize ( m_effective_area.width , m_effective_area.height );
You can’t perform that action at this time.
0 commit comments