v0.4.2: (hopefully) solved concurrency issues with bitmaptext
This commit is contained in:
parent
824c8f789c
commit
8dc0d56eb0
|
@ -104,7 +104,7 @@ public class BitmapText extends Visual {
|
||||||
buffer.delete();
|
buffer.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void updateVertices() {
|
protected synchronized void updateVertices() {
|
||||||
|
|
||||||
width = 0;
|
width = 0;
|
||||||
height = 0;
|
height = 0;
|
||||||
|
@ -167,7 +167,7 @@ public class BitmapText extends Visual {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void measure() {
|
public synchronized void measure() {
|
||||||
|
|
||||||
width = 0;
|
width = 0;
|
||||||
height = 0;
|
height = 0;
|
||||||
|
@ -202,7 +202,7 @@ public class BitmapText extends Visual {
|
||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void font( Font value ) {
|
public synchronized void font( Font value ) {
|
||||||
font = value;
|
font = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ public class BitmapText extends Visual {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void text( String str ) {
|
public synchronized void text( String str ) {
|
||||||
text = str;
|
text = str;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user