Commit 76da6273 authored by Guido Gunther's avatar Guido Gunther
Browse files

Revert "rumble: Use a default pause"

This reverts commit 551030b4.
parent 551030b4
......@@ -122,7 +122,7 @@ fbd_feedback_vibra_rumble_start_vibra (FbdFeedbackVibra *vibra)
self->rumble = (duration / self->count) - self->pause;
if (self->rumble <= 0) {
self->rumble = FBD_FEEDBACK_VIBRA_DEFAULT_DURATION;
self->pause = FBD_FEEDBACK_VIBRA_RUMBLE_DEFAULT_PAUSE;
self->pause = 0;
self->count = 1;
}
period = self->rumble + self->pause;
......@@ -162,7 +162,7 @@ fbd_feedback_vibra_rumble_class_init (FbdFeedbackVibraRumbleClass *klass)
"pause",
"Pause",
"The pause in msecs between rumbles",
0, G_MAXINT, FBD_FEEDBACK_VIBRA_RUMBLE_DEFAULT_PAUSE,
0, G_MAXINT, 0,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
......@@ -172,5 +172,4 @@ static void
fbd_feedback_vibra_rumble_init (FbdFeedbackVibraRumble *self)
{
self->count = 1;
self->pause = FBD_FEEDBACK_VIBRA_RUMBLE_DEFAULT_PAUSE;
}
......@@ -9,8 +9,6 @@
G_BEGIN_DECLS
#define FBD_FEEDBACK_VIBRA_RUMBLE_DEFAULT_PAUSE 100
#define FBD_TYPE_FEEDBACK_VIBRA_RUMBLE (fbd_feedback_vibra_rumble_get_type())
G_DECLARE_FINAL_TYPE (FbdFeedbackVibraRumble, fbd_feedback_vibra_rumble, FBD,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment