diff options
author | pommicket <pommicket@gmail.com> | 2022-12-29 12:23:16 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-29 12:23:16 -0500 |
commit | 7dca1a04452ca6caf6e230839c48f0f9dd9d67b8 (patch) | |
tree | 807b29089283f15a08cf809a1ff2e5984dd725f6 /main.c | |
parent | 18fbb21e6b95139a8890ba4a65f4402df128ac84 (diff) |
hover colors
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,7 +1,6 @@ /* @TODO: - more LSP stuff: - - hover - go to definition using LSP - find usages - highlight hover range @@ -1100,8 +1099,12 @@ int main(int argc, char **argv) { ted->cursor = ted->cursor_move; SDL_SetWindowTitle(window, ted->window_title); - SDL_SetCursor(ted->cursor); - + if (ted->cursor) { + SDL_SetCursor(ted->cursor); + SDL_ShowCursor(SDL_ENABLE); + } else { + SDL_ShowCursor(SDL_DISABLE); + } // annoyingly, SDL_GL_SwapWindow seems to be a busy loop on my laptop for some reason... // enforce a framerate of 60. this isn't ideal but SDL_GetDisplayMode is *extremely slow* (250ms), so we don't really have a choice. |