BufferUtils -> Buffers
This commit is contained in:
@@ -330,7 +330,7 @@ public class Renderer implements ApplicationListener{
|
|||||||
}
|
}
|
||||||
buffer.end();
|
buffer.end();
|
||||||
Pixmap fullPixmap = new Pixmap(w, h, Pixmap.Format.RGBA8888);
|
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");
|
Fi file = screenshotDirectory.child("screenshot-" + Time.millis() + ".png");
|
||||||
PixmapIO.writePNG(file, fullPixmap);
|
PixmapIO.writePNG(file, fullPixmap);
|
||||||
fullPixmap.dispose();
|
fullPixmap.dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user