Tests for canvas coordinate synchronization. More...
Protected Member Functions | |
void | SetUp () override |
Protected Attributes | |
std::unique_ptr< gui::Canvas > | canvas_ |
Tests for canvas coordinate synchronization.
These tests verify that the canvas coordinate system properly tracks mouse position for both hover and paint operations, fixing the regression where CheckForCurrentMap() in OverworldEditor was using raw ImGui mouse position instead of canvas-local coordinates.
Regression: overworld_editor.cc:1041 was using ImGui::GetIO().MousePos instead of canvas hover position, causing map highlighting to break.
Definition at line 26 of file canvas_coordinate_sync_test.cc.
|
inlineoverrideprotected |
Definition at line 28 of file canvas_coordinate_sync_test.cc.
References canvas_, and yaze::gui::k16x16.
|
protected |
Definition at line 35 of file canvas_coordinate_sync_test.cc.
Referenced by SetUp().