terminit() should run with draw lock held.
Showing the changes to gui-android/cpp (1 of 5 files). Show all
Unified · Split
| @@ -174,8 +174,8 @@ screeninit(void) · 173 unmodified lines | ||
| 174 | 174 | if (gscreen == nil) |
| 175 | 175 | panic("screensize failed"); |
| 176 | 176 | gscreen->clipr = r; |
| 177 | − terminit(); | |
| 178 | 177 | qlock(&drawlock); |
| 178 | + terminit(); | |
| 179 | 179 | flushmemscreen(r); |
| 180 | 180 | qunlock(&drawlock); |
| 181 | 181 | return; |