| 4771 | } |
| 4772 | |
| 4773 | static void UI_check_mouse() { |
| 4774 | UI_Context *ctx = G->ui; |
| 4775 | G->ui_want_capture_mouse = false; |
| 4776 | for (int i = 0; i < G->check_mouse_hashes.count; i++) { |
| 4777 | UI_Block *ref = UI_find_block(ctx, G->check_mouse_hashes[i], UI_PREVIOUS); |
| 4778 | if (ref) { |
| 4779 | if (UI_point_in_rect(ref->position, ref->position + ref->size, UI_get_mouse())) { |
| 4780 | G->ui_want_capture_mouse = true; |
| 4781 | break; |
| 4782 | } |
| 4783 | } |
| 4784 | } |
| 4785 | G->check_mouse_hashes.reset_count(); |
| 4786 | } |
| 4787 | |
| 4788 | static void render_histogram() { |
| 4789 | if (!G->histo_block) return; |
no test coverage detected