This commit is contained in:
Anuken
2020-03-01 16:20:42 -05:00
parent 6f5815abc8
commit ab7e840eee
2 changed files with 2 additions and 2 deletions

View File

@@ -441,7 +441,7 @@ public class Renderer implements ApplicationListener{
}
buffer.end();
Pixmap fullPixmap = new Pixmap(w, h, Pixmap.Format.RGBA8888);
BufferUtils.copy(lines, 0, fullPixmap.getPixels(), lines.length);
Buffers.copy(lines, 0, fullPixmap.getPixels(), lines.length);
Fi file = screenshotDirectory.child("screenshot-" + Time.millis() + ".png");
PixmapIO.writePNG(file, fullPixmap);
fullPixmap.dispose();