From 7dca1a04452ca6caf6e230839c48f0f9dd9d67b8 Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 29 Dec 2022 12:23:16 -0500 Subject: hover colors --- main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 39e659b..fac2c4e 100644 --- a/main.c +++ b/main.c @@ -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. -- cgit v1.2.3