From 7fc1ce8b45207f5ed766653ff3476137b0ebe19d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 31 Jan 2021 20:44:34 +0100 Subject: [PATCH] changed parameter order in float_setting --- config.cpp | 2 +- screenshot.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.cpp b/config.cpp index a9aea3dc..9a9d6bf9 100644 --- a/config.cpp +++ b/config.cpp @@ -43,7 +43,7 @@ struct float_setting { void add_as_saver(); void show_edit_option(char key); void show_edit_option() { show_edit_option(default_key); } - float_setting *editable(string menu_item_name, ld min_value, ld max_value, ld step, string help_text, char key) { + float_setting *editable(ld min_value, ld max_value, ld step, string menu_item_name, string help_text, char key) { this->min_value = min_value; this->max_value = max_value; this->menu_item_name = menu_item_name; diff --git a/screenshot.cpp b/screenshot.cpp index bf62a1fa..1843b351 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -1801,7 +1801,7 @@ auto animhook = addHook(hooks_frame, 100, display_animation) addsaver(anims::noframes, "animation frames"); addparamsaver(anims::cycle_length, "acycle", "animation cycle length"); addparamsaver(anims::parabolic_length, "aparabolic", "animation parabolic length") - ->editable("cells to go", 0, 10, 1, "", 'c'); + ->editable(0, 10, 1, "cells to go", "", 'c'); addparamsaver(anims::rug_angle, "arugangle", "animation rug angle"); addparamsaver(anims::circle_radius, "acradius", "animation circle radius"); addparamsaver(anims::circle_spins, "acspins", "animation circle spins");