Fix typo after cleanup

This commit is contained in:
ExPikaPaka
2026-07-21 11:28:51 +02:00
parent 129b612af5
commit 219cddf40e
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -660,8 +660,8 @@ bool GLTexture::generate_texture_from_text(const std::string& text_str, wxFont&
found = false; found = false;
src -= 3; src -= 3;
for (int h = m_height; h > 0; -h) { for (int h = m_height; h > 0; --h) {
for (int w = m_width; w > 0; -w) { for (int w = m_width; w > 0; --w) {
if ((*src) != background.Red() && !found) { if ((*src) != background.Red() && !found) {
found = true; found = true;
if (h < font.GetPointSize()) if (h < font.GetPointSize())
@@ -742,7 +742,7 @@ void GLTexture::render_sub_texture(unsigned int tex_id, float left, float right,
static bool to_squared_power_of_two(const std::string& filename, int max_size_px, int& w, int& h) static bool to_squared_power_of_two(const std::string& filename, int max_size_px, int& w, int& h)
{ {
auto is_power_of_two = [](int v) { return v != 0 && (v & (v - 1)) == 0; }; auto is_power_of_two = [](int v) { return v != 0 && (v & (v - 1)) == 0; };
auto upper_power_of_two = [](int v) { v-; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; }; auto upper_power_of_two = [](int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; };
int new_w = std::max(w, h); int new_w = std::max(w, h);
if (!is_power_of_two(new_w)) if (!is_power_of_two(new_w))
+2 -2
View File
@@ -5467,7 +5467,7 @@ struct Plater::priv
bool up_to_date(bool saved, bool backup); bool up_to_date(bool saved, bool backup);
void suppress_snapshots() { m_prevent_snapshots++; } void suppress_snapshots() { m_prevent_snapshots++; }
void allow_snapshots() { m_prevent_snapshots-; } void allow_snapshots() { m_prevent_snapshots--; }
// BBS: single snapshot // BBS: single snapshot
void single_snapshots_enter(SingleSnapshot *single) void single_snapshots_enter(SingleSnapshot *single)
{ {
@@ -17513,7 +17513,7 @@ void Plater::on_filaments_delete(size_t num_filaments, size_t filament_id, int r
for (auto& item : item->second.gcodes) { for (auto& item : item->second.gcodes) {
if (item.type == CustomGCode::Type::ToolChange && item.extruder > filament_id) if (item.type == CustomGCode::Type::ToolChange && item.extruder > filament_id)
item.extruder-; item.extruder--;
} }
} }
} }