diff options
Diffstat (limited to 'swaynag')
-rw-r--r-- | swaynag/render.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/swaynag/render.c b/swaynag/render.c index c9f4ef1d..f6507e67 100644 --- a/swaynag/render.c +++ b/swaynag/render.c | |||
@@ -8,9 +8,6 @@ | |||
8 | #include "wlr-layer-shell-unstable-v1-client-protocol.h" | 8 | #include "wlr-layer-shell-unstable-v1-client-protocol.h" |
9 | 9 | ||
10 | static uint32_t render_message(cairo_t *cairo, struct swaynag *swaynag) { | 10 | static uint32_t render_message(cairo_t *cairo, struct swaynag *swaynag) { |
11 | uint32_t height = swaynag->height * swaynag->scale; | ||
12 | height -= swaynag->type->bar_border_thickness * swaynag->scale; | ||
13 | |||
14 | int text_width, text_height; | 11 | int text_width, text_height; |
15 | get_text_size(cairo, swaynag->type->font, &text_width, &text_height, NULL, | 12 | get_text_size(cairo, swaynag->type->font, &text_width, &text_height, NULL, |
16 | swaynag->scale, true, "%s", swaynag->message); | 13 | swaynag->scale, true, "%s", swaynag->message); |
@@ -77,8 +74,6 @@ static int get_detailed_scroll_button_width(cairo_t *cairo, | |||
77 | static uint32_t render_detailed(cairo_t *cairo, struct swaynag *swaynag, | 74 | static uint32_t render_detailed(cairo_t *cairo, struct swaynag *swaynag, |
78 | uint32_t y) { | 75 | uint32_t y) { |
79 | uint32_t width = swaynag->width * swaynag->scale; | 76 | uint32_t width = swaynag->width * swaynag->scale; |
80 | uint32_t height = swaynag->height * swaynag->scale; | ||
81 | height -= swaynag->type->bar_border_thickness * swaynag->scale; | ||
82 | 77 | ||
83 | int border = swaynag->type->details_border_thickness * swaynag->scale; | 78 | int border = swaynag->type->details_border_thickness * swaynag->scale; |
84 | int padding = swaynag->type->message_padding * swaynag->scale; | 79 | int padding = swaynag->type->message_padding * swaynag->scale; |
@@ -174,8 +169,6 @@ static uint32_t render_detailed(cairo_t *cairo, struct swaynag *swaynag, | |||
174 | 169 | ||
175 | static uint32_t render_button(cairo_t *cairo, struct swaynag *swaynag, | 170 | static uint32_t render_button(cairo_t *cairo, struct swaynag *swaynag, |
176 | int button_index, int *x) { | 171 | int button_index, int *x) { |
177 | uint32_t height = swaynag->height * swaynag->scale; | ||
178 | height -= swaynag->type->bar_border_thickness * swaynag->scale; | ||
179 | struct swaynag_button *button = swaynag->buttons->items[button_index]; | 172 | struct swaynag_button *button = swaynag->buttons->items[button_index]; |
180 | 173 | ||
181 | int text_width, text_height; | 174 | int text_width, text_height; |