Revision | 662b9029ea2a3accd2114e49b91587e4e87c7a5e (tree) |
---|---|
Zeit | 2012-10-30 17:34:46 |
Autor | angeart <angeart@git....> |
Commiter | angeart |
Inputの挙動の修正
@@ -642,7 +642,7 @@ void Input::ProcessInput(InputManager* input) | ||
642 | 642 | if (push_mouse_left && !prev_mouse_left) { |
643 | 643 | auto mpos = input->GetMousePos(); |
644 | 644 | auto offset_x = mpos.first - (x_ + INPUT_MARGIN_X); |
645 | - auto offset_y = mpos.second - (y_ + INPUT_MARGIN_Y); | |
645 | + auto offset_y = mpos.second - (y_ + INPUT_MARGIN_Y) + ResourceManager::default_font_size() * message_lines_.size(); | |
646 | 646 | // カレット変更 |
647 | 647 | if( multiline_ ) { |
648 | 648 | auto line_num = offset_y / font_height_; |
@@ -688,7 +688,7 @@ void Input::ProcessInput(InputManager* input) | ||
688 | 688 | } |
689 | 689 | auto mpos = input->GetMousePos(); |
690 | 690 | auto offset_x = mpos.first - (x_ + INPUT_MARGIN_X); |
691 | - auto offset_y = mpos.second - (y_ + INPUT_MARGIN_Y); | |
691 | + auto offset_y = mpos.second - (y_ + INPUT_MARGIN_Y) + ResourceManager::default_font_size() * message_lines_.size(); | |
692 | 692 | // カレット変更 |
693 | 693 | if( multiline_ ) { |
694 | 694 | auto line_num = offset_y / font_height_; |
@@ -740,7 +740,7 @@ void Input::ProcessInput(InputManager* input) | ||
740 | 740 | if( push_mouse_left ){ |
741 | 741 | auto mpos = input->GetMousePos(); |
742 | 742 | auto offset_x = mpos.first - (x_ + INPUT_MARGIN_X); |
743 | - auto offset_y = mpos.second - (y_ + INPUT_MARGIN_Y); | |
743 | + auto offset_y = mpos.second - (y_ + INPUT_MARGIN_Y) + ResourceManager::default_font_size() * message_lines_.size(); | |
744 | 744 | // カレット変更 |
745 | 745 | if( multiline_ ) { |
746 | 746 | auto line_num = offset_y / font_height_; |