~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/video/sdl_v.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, cdcb73a
  • Date: 2009-12-24 00:55:45 UTC
  • mfrom: (1.1.9 upstream) (2.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091224005545-ffwi801t8mvqtgwz
[cdcb73a] Imported Upstream version 0.7.5. This release fixes
CVE-2009-4007.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: sdl_v.cpp 16704 2009-06-30 20:11:36Z rubidium $ */
 
1
/* $Id: sdl_v.cpp 18046 2009-11-11 21:45:50Z rubidium $ */
2
2
 
3
3
/** @file sdl_v.cpp Implementation of the SDL video driver. */
4
4
 
334
334
                                int dx = ev.motion.x - _cursor.pos.x;
335
335
                                int dy = ev.motion.y - _cursor.pos.y;
336
336
                                if (dx != 0 || dy != 0) {
337
 
                                        _cursor.delta.x += dx;
338
 
                                        _cursor.delta.y += dy;
 
337
                                        _cursor.delta.x = dx;
 
338
                                        _cursor.delta.y = dy;
339
339
                                        SDL_CALL SDL_WarpMouse(_cursor.pos.x, _cursor.pos.y);
340
340
                                }
341
341
                        } else {