mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:43:46 +01:00
no need to check for < 0
This commit is contained in:
parent
9498b54fbc
commit
0848c39cde
6
render.c
6
render.c
@ -17,11 +17,11 @@ render_job(void* data)
|
||||
while (true) {
|
||||
g_mutex_lock(render_thread->lock);
|
||||
|
||||
if (girara_list_size(render_thread->list) <= 0) {
|
||||
if (girara_list_size(render_thread->list) == 0) {
|
||||
g_cond_wait(render_thread->cond, render_thread->lock);
|
||||
}
|
||||
|
||||
if (girara_list_size(render_thread->list) <= 0) {
|
||||
if (girara_list_size(render_thread->list) == 0) {
|
||||
/*
|
||||
* We've been signaled with g_cond_signal(), but the list
|
||||
* is still empty. This means that the signal came from
|
||||
@ -223,7 +223,7 @@ render(zathura_t* zathura, zathura_page_t* page)
|
||||
cairo_restore(cairo);
|
||||
cairo_destroy(cairo);
|
||||
|
||||
int rowstride = cairo_image_surface_get_stride(surface);
|
||||
const int rowstride = cairo_image_surface_get_stride(surface);
|
||||
unsigned char* image = cairo_image_surface_get_data(surface);
|
||||
|
||||
/* recolor */
|
||||
|
Loading…
Reference in New Issue
Block a user