+ResizeReset::ResizeReset(ResizeVTrackWindow *gui,
+ ResizeVTrackThread *thread, int x, int y)
+ : BC_Button(x, y, thread->mwindow->theme->get_image_set("reset_button"))
+{
+ this->gui = gui;
+ this->thread = thread;
+ set_tooltip(_("Reset"));
+}
+int ResizeReset::handle_event()
+{
+ thread->w = thread->w1;
+ thread->h = thread->h1;
+ thread->w_scale = 1;
+ thread->h_scale = 1;
+ gui->update(1, 1);
+ return 1;
+}