mirror of https://github.com/davatorium/rofi.git
[Widget] Extend the pattern when loading, good for bg patterns.
This commit is contained in:
parent
a0b8a05315
commit
1e25ae03b7
|
@ -937,6 +937,7 @@ void rofi_theme_get_image ( const widget *widget, const char *property, cairo_t
|
||||||
|
|
||||||
if ( img != NULL ) {
|
if ( img != NULL ) {
|
||||||
cairo_pattern_t * pat = cairo_pattern_create_for_surface ( img );
|
cairo_pattern_t * pat = cairo_pattern_create_for_surface ( img );
|
||||||
|
cairo_pattern_set_extend ( pat, CAIRO_EXTEND_REPEAT );
|
||||||
cairo_set_source ( d, pat );
|
cairo_set_source ( d, pat );
|
||||||
cairo_pattern_destroy ( pat );
|
cairo_pattern_destroy ( pat );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue