From 5cad1bee9b72610d9d97b5f97e7f1a245a2d2ba5 Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 7 Sep 2023 15:18:45 -0400 Subject: more diagnostics --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 12324ce..dbfb6a1 100644 --- a/main.c +++ b/main.c @@ -641,7 +641,7 @@ int main(int argc, char **argv) { } else if (key_modifier == 0) { // scroll with mouse wheel Sint32 dx = event.wheel.x, dy = -event.wheel.y; - if (autocomplete_box_contains_point(ted, ted->mouse_pos)) { + if (autocomplete_box_contains_point(ted, ted_mouse_pos(ted))) { autocomplete_scroll(ted, dy); } else { ted->scroll_total_x += dx; @@ -886,7 +886,7 @@ int main(int argc, char **argv) { ted_log(ted, "%s\n", lsp_request_string(r, m->message)); } break; case LSP_REQUEST_PUBLISH_DIAGNOSTICS: { - ted_process_publish_diagnostics(ted, r); + ted_process_publish_diagnostics(ted, lsp, r); } break; default: break; } @@ -984,7 +984,7 @@ int main(int argc, char **argv) { if (ted->resizing_build_output) { if (ted->mouse_state & SDL_BUTTON_LMASK) { // resize it - ted->build_output_height = clampf((y2 - ted->mouse_pos.y) / ted->window_height, 0.05f, 0.8f); + ted->build_output_height = clampf((y2 - ted_mouse_pos(ted).y) / ted->window_height, 0.05f, 0.8f); } else { // stop resizing build output ted->resizing_build_output = false; @@ -996,7 +996,7 @@ int main(int argc, char **argv) { // start resizing build output ted->resizing_build_output = true; } - if (rect_contains_point(gap, ted->mouse_pos)) { + if (ted_mouse_in_rect(ted, gap)) { ted->cursor = ted->cursor_resize_v; } } -- cgit v1.2.3