Subversion Repositories Kolibri OS

Rev

Rev 4438 | Rev 5372 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4438 Rev 5061
Line 199... Line 199...
199
            {
199
            {
200
                int relx, rely;
200
                int relx, rely;
201
 
201
 
Line 202... Line 202...
202
                capture_mouse(ctrl);
202
                capture_mouse(ctrl);
203
                spos = get_cursor_pos();
203
                spos = GetMousePos(POS_SCREEN);
204
                fr->track = rc;
204
                fr->track = rc;
Line 205... Line 205...
205
 
205
 
206
                relx = spos.x - win->rc.l;
206
                relx = spos.x - win->rc.l;
207
                rely = spos.y - win->rc.t;
207
                rely = spos.y - win->rc.t;
Line 233... Line 233...
233
        case MSG_MOUSEMOVE:
233
        case MSG_MOUSEMOVE:
234
            if(mouse_capture == ctrl)
234
            if(mouse_capture == ctrl)
235
            {
235
            {
236
                pos_t npos;
236
                pos_t npos;
237
                npos = get_cursor_pos();
237
                npos = GetMousePos(POS_SCREEN);
238
//                printf("cursor pos %dx%d\n", npos.x, npos.y);
238
//                printf("cursor pos %dx%d\n", npos.x, npos.y);
Line 239... Line 239...
239
 
239
 
240
                if( npos.val != spos.val)
240
                if( npos.val != spos.val)
241
                {
241
                {