mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
fix(term): address clang warnings
This commit is contained in:
parent
43634affa3
commit
14288352fd
1 changed files with 3 additions and 1 deletions
|
@ -698,6 +698,8 @@ void Terminal::_handle_mouse_wheel(Ref<InputEventMouseButton> event) {
|
||||||
case MOUSE_BUTTON_WHEEL_DOWN:
|
case MOUSE_BUTTON_WHEEL_DOWN:
|
||||||
scroll_func = &tsm_screen_sb_down;
|
scroll_func = &tsm_screen_sb_down;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (scroll_func != nullptr) {
|
if (scroll_func != nullptr) {
|
||||||
|
@ -716,7 +718,7 @@ void Terminal::_handle_selection(Ref<InputEventMouse> event) {
|
||||||
|
|
||||||
Ref<InputEventMouseButton> mb = event;
|
Ref<InputEventMouseButton> mb = event;
|
||||||
if (mb.is_valid()) {
|
if (mb.is_valid()) {
|
||||||
if (!mb->is_pressed() || !mb->get_button_index() == MOUSE_BUTTON_LEFT)
|
if (!mb->is_pressed() || mb->get_button_index() != MOUSE_BUTTON_LEFT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (selecting) {
|
if (selecting) {
|
||||||
|
|
Loading…
Reference in a new issue