Java VideoMode: Provide PixelFormat-taking constructor.

This commit is contained in:
Peter Johnson
2017-01-04 01:05:23 -08:00
parent e893662c0a
commit 4ed78a84ef

View File

@@ -34,6 +34,13 @@ public class VideoMode {
this.fps = fps;
}
public VideoMode(PixelFormat pixelFormat, int width, int height, int fps) {
this.pixelFormat = pixelFormat;
this.width = width;
this.height = height;
this.fps = fps;
}
/// Pixel format
public PixelFormat pixelFormat;
/// Width in pixels