[Commits] [wesnoth/wesnoth] 2f6dfc: Preferences Dialog: refactor accelerated speed han...

GitHub noreply at github.com
Thu Nov 3 23:20:22 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 2f6dfcfe7bd70842d87f5681118ab7d00f6b053e
      https://github.com/wesnoth/wesnoth/commit/2f6dfcfe7bd70842d87f5681118ab7d00f6b053e
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-11-04 (Fri, 04 Nov 2016)

  Changed paths:
    M src/gui/dialogs/preferences_dialog.cpp
    M src/gui/dialogs/preferences_dialog.hpp

  Log Message:
  -----------
  Preferences Dialog: refactor accelerated speed handling to avoid excessive type casts

This removes the awkward cast-to-string-and-back-to-double-on-exit method I had devised before with
a more solid system. The internal values are always handled as doubles, and only cast to string
to populate a temporary vector to pass to set_value_labels





More information about the Commits mailing list