aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-08 13:39:11 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-08 13:39:11 +0200
commit0f0bf1c649388c07ae6e8dd784d7402f68691b96 (patch)
tree22868fcd37cdc15c6d0b6002d85b7c1676b2f34d /src/Body.cpp
parentda95623137f85b07abf9f56035c23819af1e7fe9 (diff)
Remove images that are not visible from the loading queue, prepare for inline images
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index 3df816c..d84785a 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -701,8 +701,8 @@ namespace QuickMedia {
}
bool instant_move = body_size_changed;
- if(target_y_set == TargetSetState::SET) {
- target_y_set = TargetSetState::APPLIED;
+ if(target_set == TargetSetState::SET) {
+ target_set = TargetSetState::APPLIED;
instant_move = true;
}
@@ -941,8 +941,8 @@ namespace QuickMedia {
if(item_index == selected_item) {
item_background_target_pos = pos;
item_background_target_size = sf::Vector2f(item_width, item_height);
- if(target_y_set == TargetSetState::NOT_SET)
- target_y_set = TargetSetState::SET;
+ if(target_set == TargetSetState::NOT_SET)
+ target_set = TargetSetState::SET;
}
}