Previous 199869 Revisions Next

r34815 Tuesday 3rd February, 2015 at 02:55:20 UTC by R. Belmont
Fix SDL build breakage (nw)
[src/osd/sdl]input.c

trunk/src/osd/sdl/input.c
r243326r243327
18621862            int cx, cy;
18631863            osd_ticks_t click = osd_ticks() * 1000 / osd_ticks_per_second();
18641864            sdl_window_info *window = GET_FOCUS_WINDOW(&event.button);
1865            if (window != NULL && window->xy_to_render_target(event.button.x,event.button.y, &cx, &cy) )
1865            if (window != NULL && window->renderer().xy_to_render_target(event.button.x,event.button.y, &cx, &cy) )
18661866            {
18671867               ui_input_push_mouse_down_event(machine, window->m_target, cx, cy);
18681868               // FIXME Parameter ?
r243326r243327
18961896            int cx, cy;
18971897            sdl_window_info *window = GET_FOCUS_WINDOW(&event.button);
18981898
1899            if (window != NULL && window->xy_to_render_target(event.button.x,event.button.y, &cx, &cy) )
1899            if (window != NULL && window->renderer().xy_to_render_target(event.button.x,event.button.y, &cx, &cy) )
19001900            {
19011901               ui_input_push_mouse_up_event(machine, window->m_target, cx, cy);
19021902            }
r243326r243327
19211921            int cx=-1, cy=-1;
19221922            sdl_window_info *window = GET_FOCUS_WINDOW(&event.motion);
19231923
1924            if (window != NULL && window->xy_to_render_target(event.motion.x, event.motion.y, &cx, &cy) )
1924            if (window != NULL && window->renderer().xy_to_render_target(event.motion.x, event.motion.y, &cx, &cy) )
19251925               ui_input_push_mouse_move_event(machine, window->m_target, cx, cy);
19261926         }
19271927         break;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team