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"
25 #include "temponodes_proc.h"
27 #include "undo_reltempomax_proc.h"
30 struct Undo_RelTempoMax
{
34 void *Undo_Do_RelTempoMax(
35 struct Tracker_Windows
*window
,
36 struct WBlocks
*wblock
,
37 struct WTracks
*wtrack
,
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
;
52 wblock
->wtrack
->l
.num
,
53 wblock
->curr_realline
,
60 void *Undo_Do_RelTempoMax(
61 struct Tracker_Windows
*window
,
62 struct WBlocks
*wblock
,
63 struct WTracks
*wtrack
,
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
;