Previous 15994 Revisions Next

r10307 Saturday 5th February, 2011 at 20:25:06 UTC by Curt Coder
Synced with MAME.
[src/osd/windows]debugwin.c

src/osd/windows/debugwin.c
r10306r10307
742742      // mouse wheel: forward to the first view
743743      case WM_MOUSEWHEEL:
744744      {
745         int delta = (INT16)HIWORD(wparam) / WHEEL_DELTA;
745         static int units_carryover = 0;
746
747         UINT lines_per_click;
748         if (!SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, &lines_per_click, 0))
749            lines_per_click = 3;
750
751         int units = GET_WHEEL_DELTA_WPARAM(wparam) + units_carryover;
752         int clicks = units / WHEEL_DELTA;
753         units_carryover = units % WHEEL_DELTA;
754
755         int delta = clicks * lines_per_click;
746756         int viewnum = 0;
747757         POINT point;
748758         HWND child;
r10306r10307
763773         // send the appropriate message to this view's scrollbar
764774         if (info->view[viewnum].wnd && info->view[viewnum].vscroll)
765775         {
766            int message_type = SB_LINELEFT;
776            int message_type = SB_LINEUP;
767777            if (delta < 0)
768778            {
769               message_type = SB_LINERIGHT;
779               message_type = SB_LINEDOWN;
770780               delta = -delta;
771781            }
772782            while (delta > 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team