Removes multi-threaded drawing from the *Screen* class.
@@ -237,23 +237,9 @@ public class Screen extends Component implements Receiver<String> {
// Draw the screen onto the canvas:
final AsciiString[] strings = super.getStrings();
- final Thread thread = new Thread(() -> {
- for (int row = 0 ; row < getHeight()/2 ; row++) {
+ for (int row = 0 ; row < getHeight() ; row++) {
strings[row].draw(gc, imageCache, row, offset);
}
- });
-
- thread.start();
-
- for (int row = getHeight()/2 ; row < getHeight() ; row++) {
- strings[row].draw(gc, imageCache, row, offset);
- }
-
- try {
- thread.join();
- } catch(final InterruptedException e) {
- e.printStackTrace();
- }
// Draw layer components onto the screen:
layerComponents.forEach(layer -> layer.draw(gc, imageCache, offset));
