summaryrefslogtreecommitdiffhomepage
path: root/editor/editor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 23:42:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 23:42:07 +0100
commit4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (patch)
treec0a5d21b8e19fbb60c286faec8e302e6f32b6679 /editor/editor.cpp
parent32b8c22828315292857e2cd9909fba620f30ff70 (diff)
pre-declare integer types without cstddef/cstdint
Diffstat (limited to 'editor/editor.cpp')
-rw-r--r--editor/editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index cfb36480..f09030dc 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -69,10 +69,10 @@ void editor::on_mouse_move(world& world, global_coords& pos, int mods)
const auto [minx, maxx] = std::minmax(draw_coord.x, last.draw_coord.x);
const auto [miny, maxy] = std::minmax(draw_coord.y, last.draw_coord.y);
if (draw_offset[0])
- for (std::uint32_t i = minx; i <= maxx; i++)
+ for (uint32_t i = minx; i <= maxx; i++)
on_click_(world, { i, draw_coord.y }, last.btn);
else
- for (std::uint32_t j = miny; j <= maxy; j++)
+ for (uint32_t j = miny; j <= maxy; j++)
on_click_(world, { draw_coord.x, j }, last.btn);
}
else