mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-07-30 09:21:12 +08:00
fix a small bug in button example
This commit is contained in:
parent
7b1f4d435b
commit
8018e5c128
@ -34,8 +34,8 @@ int main() {
|
|||||||
int value = 50;
|
int value = 50;
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
auto btn_dec_01 = Button("-1", [&] { value += 1; }, Style());
|
auto btn_dec_01 = Button("-1", [&] { value -= 1; }, Style());
|
||||||
auto btn_inc_01 = Button("+1", [&] { value -= 1; }, Style());
|
auto btn_inc_01 = Button("+1", [&] { value += 1; }, Style());
|
||||||
auto btn_dec_10 = Button("-10", [&] { value -= 10; }, Style());
|
auto btn_dec_10 = Button("-10", [&] { value -= 10; }, Style());
|
||||||
auto btn_inc_10 = Button("+10", [&] { value += 10; }, Style());
|
auto btn_inc_10 = Button("+10", [&] { value += 10; }, Style());
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
Loading…
Reference in New Issue
Block a user