summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-08 14:15:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-08 14:28:06 +0200
commitc908c0cc43211d9937340b2a0704e8c53241b035 (patch)
tree27ace4aa19c9707e3da7065e343c2c321dbef559 /editor
parent54965220ebe8f0c1cecb6d1cfec856c979aaa92d (diff)
src: even less explicit global_coords ctor
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index f09030dc..2d52d715 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -70,10 +70,10 @@ void editor::on_mouse_move(world& world, global_coords& pos, int mods)
const auto [miny, maxy] = std::minmax(draw_coord.y, last.draw_coord.y);
if (draw_offset[0])
for (uint32_t i = minx; i <= maxx; i++)
- on_click_(world, { i, draw_coord.y }, last.btn);
+ on_click_(world, { i, draw_coord.y, nullptr }, last.btn);
else
for (uint32_t j = miny; j <= maxy; j++)
- on_click_(world, { draw_coord.x, j }, last.btn);
+ on_click_(world, { draw_coord.x, j, nullptr }, last.btn);
}
else
on_click_(world, draw_coord, last.btn);