Skip to content

Commit d266160

Browse files
committed
fixed build
1 parent 563669d commit d266160

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ui/geometry/Geometry.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "Geometry.h"
22

3+
#include <cmath>
4+
35
#include "common/Assert.h"
46

57
#include "engine/Engine.h"
@@ -403,11 +405,7 @@ void Geometry::UpdateEffectiveArea() {
403405
}
404406

405407
if ( effective_area != m_effective_area ) {
406-
// TODO: get rid of std::round, maybe change ui coords to fixed numbers?
407408
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-
}
411409
m_effective_area = effective_area;
412410
if ( should_resize && m_on_resize ) {
413411
m_on_resize( m_effective_area.width, m_effective_area.height );

0 commit comments

Comments
 (0)