[Widget] Extend the pattern when loading, good for bg patterns.

This commit is contained in:
Dave Davenport 2021-06-13 21:35:42 +02:00
parent a0b8a05315
commit 1e25ae03b7
1 changed files with 1 additions and 0 deletions

View File

@ -937,6 +937,7 @@ void rofi_theme_get_image ( const widget *widget, const char *property, cairo_t
if ( img != NULL ) {
cairo_pattern_t * pat = cairo_pattern_create_for_surface ( img );
cairo_pattern_set_extend ( pat, CAIRO_EXTEND_REPEAT );
cairo_set_source ( d, pat );
cairo_pattern_destroy ( pat );
}