Make the sprite map globally accessible from C code as well as python code

The lock was removed as the Python GIL is sufficient to serialize access
to the SpriteMap structure.
This commit is contained in:
Kovid Goyal
2017-08-30 20:49:53 +05:30
parent 4feff2e2da
commit 6127d2d122
12 changed files with 191 additions and 203 deletions

View File

@@ -285,8 +285,7 @@ class TabBar:
s.draw('')
break
s.erase_in_line(0, False) # Ensure no long titles bleed after the last tab
sprites = get_boss().sprites
s.update_cell_data(sprites.backend, addressof(self.render_buf), True)
s.update_cell_data(addressof(self.render_buf), True)
self.cell_ranges = cr
self.dirty = True
glfw_post_empty_event()