aboutsummaryrefslogtreecommitdiff
path: root/src/gui/Entry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Entry.cpp')
-rw-r--r--src/gui/Entry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/Entry.cpp b/src/gui/Entry.cpp
index e74e41e..f337bcf 100644
--- a/src/gui/Entry.cpp
+++ b/src/gui/Entry.cpp
@@ -57,7 +57,7 @@ namespace gsr {
window.draw(background);
if(selected) {
- const int border_size = border_scale * get_theme().window_height;
+ const int border_size = std::max(1.0f, border_scale * get_theme().window_height);
draw_rectangle_outline(window, draw_pos.floor(), get_size().floor(), get_theme().tint_color, border_size);
const int caret_width = std::max(1.0f, caret_width_scale * get_theme().window_height);