mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:13:48 +01:00
Fixed search result highlighting
This commit is contained in:
parent
eadca8d216
commit
f0c0c7b8ee
@ -1528,6 +1528,7 @@ void
|
||||
sc_rotate(Argument* argument)
|
||||
{
|
||||
Zathura.PDF.rotate = (Zathura.PDF.rotate + 90) % 360;
|
||||
Zathura.Search.draw = TRUE;
|
||||
|
||||
draw(Zathura.PDF.page_number);
|
||||
}
|
||||
@ -3021,6 +3022,7 @@ bcmd_zoom(char* buffer, Argument* argument)
|
||||
else
|
||||
Zathura.PDF.scale = 100;
|
||||
|
||||
Zathura.Search.draw = TRUE;
|
||||
draw(Zathura.PDF.page_number);
|
||||
update_status();
|
||||
}
|
||||
@ -3109,6 +3111,7 @@ gboolean cb_draw(GtkWidget* widget, GdkEventExpose* expose, gpointer data)
|
||||
GList* list;
|
||||
for(list = Zathura.Search.results; list && list->data; list = g_list_next(list))
|
||||
highlight_result(Zathura.Search.page, (PopplerRectangle*) list->data);
|
||||
Zathura.Search.draw = FALSE;
|
||||
}
|
||||
|
||||
cairo_set_source_surface(cairo, Zathura.PDF.surface, offset_x, offset_y);
|
||||
|
Loading…
Reference in New Issue
Block a user