mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-12-05 01:11:46 +08:00
Corrected typo
This commit is contained in:
parent
46f7fbb8dc
commit
26507ad5b9
@ -72,15 +72,15 @@ class HBox : public Node {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool xmin_satured =
|
const bool xmin_saturated =
|
||||||
selection.y_min < box_.y_min || selection.x_min < box_.x_min;
|
selection.y_min < box_.y_min || selection.x_min < box_.x_min;
|
||||||
const bool xmax_satured =
|
const bool xmax_saturated =
|
||||||
selection.y_max > box_.y_max || selection.x_max > box_.x_max;
|
selection.y_max > box_.y_max || selection.x_max > box_.x_max;
|
||||||
|
|
||||||
if (xmin_satured) {
|
if (xmin_saturated) {
|
||||||
selection.x_min = box_.x_min;
|
selection.x_min = box_.x_min;
|
||||||
}
|
}
|
||||||
if (xmax_satured) {
|
if (xmax_saturated) {
|
||||||
selection.x_max = box_.x_max;
|
selection.x_max = box_.x_max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,13 +33,13 @@ class Text : public Node {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool xmin_satured =
|
const bool xmin_saturated =
|
||||||
selection.y_min < box_.y_min || selection.x_min < box_.x_min;
|
selection.y_min < box_.y_min || selection.x_min < box_.x_min;
|
||||||
const bool xmax_satured =
|
const bool xmax_saturated =
|
||||||
selection.y_max > box_.y_max || selection.x_max > box_.x_max;
|
selection.y_max > box_.y_max || selection.x_max > box_.x_max;
|
||||||
|
|
||||||
selection_start_ = xmin_satured ? box_.x_min : selection.x_min;
|
selection_start_ = xmin_saturated ? box_.x_min : selection.x_min;
|
||||||
selection_end_ = xmax_satured ? box_.x_max : selection.x_max;
|
selection_end_ = xmax_saturated ? box_.x_max : selection.x_max;
|
||||||
|
|
||||||
has_selection = true;
|
has_selection = true;
|
||||||
|
|
||||||
|
@ -72,14 +72,14 @@ class VBox : public Node {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool ymin_satured =
|
const bool ymin_saturated =
|
||||||
selection.x_min < box_.x_min || selection.y_min < box_.y_min;
|
selection.x_min < box_.x_min || selection.y_min < box_.y_min;
|
||||||
const bool ymax_satured =
|
const bool ymax_saturated =
|
||||||
selection.x_max > box_.x_max || selection.y_max > box_.y_max;
|
selection.x_max > box_.x_max || selection.y_max > box_.y_max;
|
||||||
if (ymin_satured) {
|
if (ymin_saturated) {
|
||||||
selection.y_min = box_.y_min;
|
selection.y_min = box_.y_min;
|
||||||
}
|
}
|
||||||
if (ymax_satured) {
|
if (ymax_saturated) {
|
||||||
selection.y_max = box_.y_max;
|
selection.y_max = box_.y_max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user