mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-10 03:21:30 -10:00
A float spinbox or slider rounds a setting to its display precision, so a stored value finer than that (slowmotion_ratio = 1.01 at one decimal) is never what the widget reports back. The paint-time resync now compares the setting with the value it last pushed to the widget, through ui_qt_float_resync(), so such a setting is pushed once and repaints no longer redo widget work; the setting itself is left as stored. samples/ui/qt_float_resync drives the helper through model widgets that round the way QDoubleSpinBox and QSlider do. Closes #19849