trunk/src/emu/ui/ui.cpp
| r253185 | r253186 | |
| 473 | 473 | else |
| 474 | 474 | m_popup_text_end = 0; |
| 475 | 475 | |
| 476 | // display the internal mouse cursor |
| 476 | 477 | if (m_mouse_show || (is_menu_active() && machine().options().ui_mouse())) |
| 477 | 478 | { |
| 478 | 479 | INT32 mouse_target_x, mouse_target_y; |
| r253185 | r253186 | |
| 482 | 483 | if (mouse_target != nullptr) |
| 483 | 484 | { |
| 484 | 485 | float mouse_y=-1,mouse_x=-1; |
| 485 | | if (mouse_target->map_point_container(mouse_target_x, mouse_target_y, *container, mouse_x, mouse_y)) { |
| 486 | | float l_heigth = machine().ui().get_line_height(); |
| 487 | | container->add_quad(mouse_x, mouse_y, mouse_x + l_heigth*container->manager().ui_aspect(container), mouse_y + l_heigth, UI_TEXT_COLOR, m_mouse_arrow_texture, PRIMFLAG_ANTIALIAS(1) | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); |
| 488 | | |
| 486 | if (mouse_target->map_point_container(mouse_target_x, mouse_target_y, *container, mouse_x, mouse_y)) |
| 487 | { |
| 488 | const float cursor_size = 0.6 * machine().ui().get_line_height(); |
| 489 | container->add_quad(mouse_x, mouse_y, mouse_x + cursor_size*container->manager().ui_aspect(container), mouse_y + cursor_size, UI_TEXT_COLOR, m_mouse_arrow_texture, PRIMFLAG_ANTIALIAS(1) | PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); |
| 489 | 490 | } |
| 490 | 491 | } |
| 491 | 492 | } |