Skip to content

Commit c132667

Browse files
Xgames123Cloudef
authored andcommitted
changed offset between filter and title so they don't overlap, removed
random rect that causes filter with opacity to behave weird
1 parent 75122a0 commit c132667

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/renderers/cairo_renderer.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,6 @@ bm_cairo_paint(struct cairo *cairo, uint32_t width, uint32_t max_height, struct
302302
uint32_t filtered_item_count;
303303
bm_menu_get_filtered_items(menu, &filtered_item_count);
304304

305-
cairo_set_source_rgba(cairo->cr, 0, 0, 0, 0);
306-
cairo_rectangle(cairo->cr, 0, 0, width, height);
307-
308305
cairo_save(cairo->cr);
309306
cairo_set_operator(cairo->cr, CAIRO_OPERATOR_CLEAR);
310307
cairo_paint(cairo->cr);
@@ -347,7 +344,7 @@ bm_cairo_paint(struct cairo *cairo, uint32_t width, uint32_t max_height, struct
347344
paint.cursor = menu->cursor;
348345
paint.cursor_height = menu->cursor_height;
349346
paint.cursor_width = menu->cursor_width;
350-
paint.pos = (struct pos){ (menu->title ? 2 : 0) + result.x_advance + border_size, vpadding + border_size };
347+
paint.pos = (struct pos){ (menu->title ? 6 : 0) + result.x_advance + border_size, vpadding + border_size };
351348
paint.box = (struct box){ (menu->title ? 2 : 4), 0, vpadding, -vpadding, width - paint.pos.x, height };
352349

353350
if (menu->lines == 0 || menu->lines_mode == BM_LINES_DOWN) {

0 commit comments

Comments
 (0)