updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / milkytracker / 64bit_freebsd_fix.patch
blob82f717c58ae582907e4fb26db218df7a2b31da9e
1 *** milkytracker-0.90.85/src/tracker/sdl/SDL_Main.cpp 2009-02-22 10:20:39.140388000 +0000
2 --- milkytracker-trunk/src/tracker/sdl/SDL_Main.cpp 2010-01-03 18:11:52.541377210 +0000
3 ***************
4 *** 751,758 ****
5 case SDLUserEventLMouseRepeat:
7 PPPoint p;
8 ! p.x = (pp_int32)event.data1;
9 ! p.y = (pp_int32)event.data2;
10 PPEvent myEvent(eLMouseRepeat, &p, sizeof(PPPoint));
11 RaiseEventSerialized(&myEvent);
12 break;
13 --- 751,758 ----
14 case SDLUserEventLMouseRepeat:
16 PPPoint p;
17 ! p.x = reinterpret_cast<intptr_t> (event.data1);
18 ! p.y = reinterpret_cast<intptr_t> (event.data2);
19 PPEvent myEvent(eLMouseRepeat, &p, sizeof(PPPoint));
20 RaiseEventSerialized(&myEvent);
21 break;
22 ***************
23 *** 761,768 ****
24 case SDLUserEventRMouseRepeat:
26 PPPoint p;
27 ! p.x = (pp_int32)event.data1;
28 ! p.y = (pp_int32)event.data2;
29 PPEvent myEvent(eRMouseRepeat, &p, sizeof(PPPoint));
30 RaiseEventSerialized(&myEvent);
31 break;
32 --- 761,768 ----
33 case SDLUserEventRMouseRepeat:
35 PPPoint p;
36 ! p.x = reinterpret_cast<intptr_t> (event.data1);
37 ! p.y = reinterpret_cast<intptr_t> (event.data2);
38 PPEvent myEvent(eRMouseRepeat, &p, sizeof(PPPoint));
39 RaiseEventSerialized(&myEvent);
40 break;
41 ***************
42 *** 770,777 ****
44 case SDLUserEventMidiKeyDown:
46 ! pp_int32 note = (pp_int32)event.data1;
47 ! pp_int32 volume = (pp_int32)event.data2;
48 globalMutex->lock();
49 myTracker->sendNoteDown(note, volume);
50 globalMutex->unlock();
51 --- 770,777 ----
53 case SDLUserEventMidiKeyDown:
55 ! pp_int32 note = reinterpret_cast<intptr_t> (event.data1);
56 ! pp_int32 volume = reinterpret_cast<intptr_t> (event.data2);
57 globalMutex->lock();
58 myTracker->sendNoteDown(note, volume);
59 globalMutex->unlock();
60 ***************
61 *** 780,786 ****
63 case SDLUserEventMidiKeyUp:
65 ! pp_int32 note = (pp_int32)event.data1;
66 globalMutex->lock();
67 myTracker->sendNoteUp(note);
68 globalMutex->unlock();
69 --- 780,786 ----
71 case SDLUserEventMidiKeyUp:
73 ! pp_int32 note = reinterpret_cast<intptr_t> (event.data1);
74 globalMutex->lock();
75 myTracker->sendNoteUp(note);
76 globalMutex->unlock();