Skip to content
Snippets Groups Projects
Commit 92216995 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't imply the callbacks need to be protected by the mutex.

parent aa5f32b4
Branches
Tags
No related merge requests found
......@@ -1944,9 +1944,9 @@ int bitmap_drv_init(void (*drawrect_cb) (struct rectlist *data)
pthread_mutex_unlock(&screenlock);
pthread_mutex_unlock(&vstatlock);
pthread_mutex_lock(&callbacks.lock);
callbacks.drawrect=drawrect_cb;
callbacks.flush=flush_cb;
pthread_mutex_lock(&callbacks.lock);
callbacks.rects = 0;
pthread_mutex_unlock(&callbacks.lock);
bitmap_initialized=1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment