diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-25 18:27:07 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-25 18:27:07 -0500 |
commit | 2baf965c7db4a3640cd120e050c61aa7de67448b (patch) | |
tree | 4ea6d87d6157b3d25eba24aa8805a10219c44a2f /main.c | |
parent | 3ff107c7ca438749a8425feef9eefb67c7a8abfc (diff) |
node resizing working
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,4 @@ // @TODO: -// - resize split (i.e. change split_pos) // - move tabs between nodes // - Windows installation @@ -525,7 +524,11 @@ int main(int argc, char **argv) { } break; } } - + { + int mx = 0, my = 0; + ted->mouse_state = SDL_GetMouseState(&mx, &my); + ted->mouse_pos = V2((float)mx, (float)my); + } // default to arrow cursor ted->cursor = ted->cursor_arrow; if (!(ted->mouse_state & SDL_BUTTON_LMASK)) { |