Decompile fn_14716 (CUIVScrollBar::SetPosition)
Batch #13101 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review. - fn_14716 CUIVScrollBar::SetPosition: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
b03f0f1a66
commit
05d6c671da
1 changed files with 2 additions and 2 deletions
|
|
@ -405,8 +405,8 @@ void CUIVScrollBar::SetVisible(int value) {
|
|||
void CUIVScrollBar::SetPosition(int value) {
|
||||
int zero = 0;
|
||||
const int* clamped = &this->maximum;
|
||||
if (value <= this->maximum) {
|
||||
clamped = value >= 0 ? &value : &zero;
|
||||
if (this->maximum >= value) {
|
||||
clamped = value < 0 ? &zero : &value;
|
||||
}
|
||||
if (!this->dragging) {
|
||||
this->position = *clamped;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue