v0.4.2: (hopefully) solved concurrency issues with bitmaptext

This commit is contained in:
Evan Debenham 2016-08-27 18:14:06 -04:00 committed by Evan Debenham
parent 824c8f789c
commit 8dc0d56eb0

View File

@ -104,7 +104,7 @@ public class BitmapText extends Visual {
buffer.delete();
}
protected void updateVertices() {
protected synchronized void updateVertices() {
width = 0;
height = 0;
@ -167,7 +167,7 @@ public class BitmapText extends Visual {
}
public void measure() {
public synchronized void measure() {
width = 0;
height = 0;
@ -202,7 +202,7 @@ public class BitmapText extends Visual {
return font;
}
public void font( Font value ) {
public synchronized void font( Font value ) {
font = value;
}
@ -210,7 +210,7 @@ public class BitmapText extends Visual {
return text;
}
public void text( String str ) {
public synchronized void text( String str ) {
text = str;
dirty = true;
}