64bit_freebsd_fix.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Description: Upstream changes introduced in version 0.90.85+dfsg-2
  2. This patch has been created by dpkg-source during the package build.
  3. Here's the last changelog entry, hopefully it gives details on why
  4. those changes were made:
  5. .
  6. milkytracker (0.90.85+dfsg-2) unstable; urgency=low
  7. .
  8. * Apply 64bit_freebsd_fix.patch from homepage. (Closes: #626627)
  9. .
  10. The person named in the Author field signed this changelog entry.
  11. Author: Gürkan Sengün <gurkan@phys.ethz.ch>
  12. Bug-Debian: http://bugs.debian.org/626627
  13. ---
  14. The information above should follow the Patch Tagging Guidelines, please
  15. checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
  16. are templates for supplementary fields that you might want to add:
  17. Origin: <vendor|upstream|other>, <url of original patch>
  18. Bug: <url in upstream bugtracker>
  19. Bug-Debian: http://bugs.debian.org/<bugnumber>
  20. Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
  21. Forwarded: <no|not-needed|url proving that it has been forwarded>
  22. Reviewed-By: <name and email of someone who approved the patch>
  23. Last-Update: <YYYY-MM-DD>
  24. --- milkytracker-0.90.85+dfsg.orig/src/tracker/sdl/SDL_Main.cpp
  25. +++ milkytracker-0.90.85+dfsg/src/tracker/sdl/SDL_Main.cpp
  26. @@ -751,8 +751,8 @@ void processSDLUserEvents(const SDL_User
  27. case SDLUserEventLMouseRepeat:
  28. {
  29. PPPoint p;
  30. - p.x = (pp_int32)event.data1;
  31. - p.y = (pp_int32)event.data2;
  32. + p.x = reinterpret_cast<intptr_t> (event.data1);
  33. + p.y = reinterpret_cast<intptr_t> (event.data2);
  34. PPEvent myEvent(eLMouseRepeat, &p, sizeof(PPPoint));
  35. RaiseEventSerialized(&myEvent);
  36. break;
  37. @@ -761,8 +761,8 @@ void processSDLUserEvents(const SDL_User
  38. case SDLUserEventRMouseRepeat:
  39. {
  40. PPPoint p;
  41. - p.x = (pp_int32)event.data1;
  42. - p.y = (pp_int32)event.data2;
  43. + p.x = reinterpret_cast<intptr_t> (event.data1);
  44. + p.y = reinterpret_cast<intptr_t> (event.data2);
  45. PPEvent myEvent(eRMouseRepeat, &p, sizeof(PPPoint));
  46. RaiseEventSerialized(&myEvent);
  47. break;
  48. @@ -770,8 +770,8 @@ void processSDLUserEvents(const SDL_User
  49. case SDLUserEventMidiKeyDown:
  50. {
  51. - pp_int32 note = (pp_int32)event.data1;
  52. - pp_int32 volume = (pp_int32)event.data2;
  53. + pp_int32 note = reinterpret_cast<intptr_t> (event.data1);
  54. + pp_int32 volume = reinterpret_cast<intptr_t> (event.data2);
  55. globalMutex->lock();
  56. myTracker->sendNoteDown(note, volume);
  57. globalMutex->unlock();
  58. @@ -780,7 +780,7 @@ void processSDLUserEvents(const SDL_User
  59. case SDLUserEventMidiKeyUp:
  60. {
  61. - pp_int32 note = (pp_int32)event.data1;
  62. + pp_int32 note = reinterpret_cast<intptr_t> (event.data1);
  63. globalMutex->lock();
  64. myTracker->sendNoteUp(note);
  65. globalMutex->unlock();