~ubuntu-branches/ubuntu/vivid/libsdl2/vivid

« back to all changes in this revision

Viewing changes to src/video/cocoa/SDL_cocoamouse.m

  • Committer: Package Import Robot
  • Author(s): Manuel A. Fernandez Montecelo, Felix Geyer
  • Date: 2013-12-28 12:31:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131228123119-e0k27gckmnzskfgb
Tags: 2.0.1+dfsg1-1
* New upstream release (Closes: #728974)
  - Remove patch applied upstream:
    bug-723797-false_positives_in_mouse_wheel_code.patch
* Bump Standards-Version to 3.9.5, no changes needed.

[ Felix Geyer ]
* Import upstream gpg key for uscan to verify the orig tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
Cocoa_WarpMouse(SDL_Window * window, int x, int y)
205
205
{
206
206
    SDL_Mouse *mouse = SDL_GetMouse();
207
 
    CGPoint point = CGPointMake(x, y);
208
 
 
209
 
    if (!(window->flags & SDL_WINDOW_FULLSCREEN))
210
 
    {
211
 
        point.x += window->x;
212
 
        point.y += window->y;
213
 
    }
 
207
    CGPoint point = CGPointMake(x + (float)window->x, y + (float)window->y);
214
208
 
215
209
    {
216
210
        /* This makes Cocoa_HandleMouseEvent ignore this delta in the next