[retro-gtk] retro-core: Don't allow negative speed rate
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-core: Don't allow negative speed rate
- Date: Mon, 20 Jan 2020 10:18:49 +0000 (UTC)
commit e4974879cd788a9722f866a9d239142a8b746960
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Jan 19 17:56:23 2020 +0500
retro-core: Don't allow negative speed rate
Having speed rate <= 0 currently stops the game. While it makes sense for
0, it can be confusing with <0, so don't allow that.
retro-gtk/retro-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index 49081b1..66165d4 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -458,7 +458,7 @@ retro_core_class_init (RetroCoreClass *klass)
g_param_spec_double ("speed-rate",
"Speed rate",
"The speed ratio at wich the core will run",
- -G_MAXDOUBLE, G_MAXDOUBLE, 1.0,
+ 0.0, G_MAXDOUBLE, 1.0,
G_PARAM_READWRITE |
G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]