Some "cast to pointer from integer of different size" warnings removed.
[AROS-Contrib.git] / MultiMedia / radium / common / undo_reltempomax.c
blob79dead2cc51f6a7caedea7c4a465ef5e83c4b1ee
1 /* Copyright 2000 Kjetil S. Matheussen
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public License
5 as published by the Free Software Foundation; either version 2
6 of the License, or (at your option) any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
23 #include "nsmtracker.h"
24 #include "undo.h"
25 #include "temponodes_proc.h"
27 #include "undo_reltempomax_proc.h"
30 struct Undo_RelTempoMax{
31 float reltempomax;
34 void *Undo_Do_RelTempoMax(
35 struct Tracker_Windows *window,
36 struct WBlocks *wblock,
37 struct WTracks *wtrack,
38 int realline,
39 void *pointer
42 void Undo_RelTempoMax(
43 struct Tracker_Windows *window,
44 struct WBlocks *wblock
46 struct Undo_RelTempoMax *u_rt=talloc_atomic(sizeof(struct Undo_RelTempoMax));
47 u_rt->reltempomax=wblock->reltempomax;
49 Undo_New(
50 window->l.num,
51 wblock->l.num,
52 wblock->wtrack->l.num,
53 wblock->curr_realline,
54 u_rt,
55 Undo_Do_RelTempoMax
60 void *Undo_Do_RelTempoMax(
61 struct Tracker_Windows *window,
62 struct WBlocks *wblock,
63 struct WTracks *wtrack,
64 int realline,
65 void *pointer
67 struct Undo_RelTempoMax *u_rt=(struct Undo_RelTempoMax *)pointer;
68 float reltempomax=wblock->reltempomax;
70 wblock->reltempomax=u_rt->reltempomax;
71 UpdateWTempoNodes(window,wblock);
73 u_rt->reltempomax=reltempomax;
75 return u_rt;