mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Fix live update
This commit is contained in:
1 parent
981f5dd634
commit
b1cf29bb38
2 files changed
+19
No files matched your search
@@ -685,6 +685,9 @@ EventReturn SliderFloatPopupScreen::OnDecrease(EventParams ¶ms) {
|
||||
sprintf(temp, "%0.3f", sliderValue_);
|
||||
edit_->SetText(temp);
|
||||
changing_ = false;
|
||||
if (liveUpdate_) {
|
||||
*value_ = sliderValue_;
|
||||
}
|
||||
return EVENT_DONE;
|
||||
}
|
||||
|
||||
@@ -699,6 +702,9 @@ EventReturn SliderFloatPopupScreen::OnIncrease(EventParams ¶ms) {
|
||||
sprintf(temp, "%0.3f", sliderValue_);
|
||||
edit_->SetText(temp);
|
||||
changing_ = false;
|
||||
if (liveUpdate_) {
|
||||
*value_ = sliderValue_;
|
||||
}
|
||||
return EVENT_DONE;
|
||||
}
|
||||
|
||||
@@ -718,6 +724,9 @@ EventReturn SliderFloatPopupScreen::OnTextChange(EventParams ¶ms) {
|
||||
if (!changing_) {
|
||||
sliderValue_ = atof(edit_->GetText().c_str());
|
||||
slider_->Clamp();
|
||||
if (liveUpdate_) {
|
||||
*value_ = sliderValue_;
|
||||
}
|
||||
}
|
||||
return EVENT_DONE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user