From 7c9b9ee255289654d6adcc7cc5d8f034c8a5cf22 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 14 Mar 2025 13:38:14 -0500 Subject: [PATCH] Remove unnecessary clip_rect which didn't work with offset ui positions --- src/game/boe.graphics.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/game/boe.graphics.cpp b/src/game/boe.graphics.cpp index be1a4516..d9f289a4 100644 --- a/src/game/boe.graphics.cpp +++ b/src/game/boe.graphics.cpp @@ -1638,7 +1638,6 @@ void draw_targeting_line(location where_curs) { if((can_see_light(from_loc,which_space,sight_obscurity) < 5) && (dist(from_loc,which_space) <= current_spell_range)) { mainPtr().setActive(false); - clip_rect(mainPtr(), on_screen_terrain_area); draw_line(mainPtr(), where_curs, location(xBound, yBound), 2, {128,128,128}, sf::BlendAdd); redraw_rect.left = min(where_curs.x,xBound) - 4; redraw_rect.right = max(where_curs.x,xBound) + 4; @@ -1679,7 +1678,6 @@ void draw_targeting_line(location where_curs) { redraw_rect2.inset(-5,-5); mainPtr().setActive(); - undo_clip(mainPtr()); } } }