internal/graphics: increase defaultViewportSize to 8192 (#538)

This makes it possible to run ebiten applications in full screen on 5k
displays, such as Apple's 27" iMac.

Fix issue #537
This commit is contained in:
Andrew Gerrand 2018-03-08 13:53:49 +11:00 committed by Hajime Hoshi
parent ef5de62780
commit a60976f260

View File

@ -70,8 +70,11 @@ func newScreenFramebuffer(width, height int) *framebuffer {
// defaultViewportSize is the default size (width or height) of viewport. // defaultViewportSize is the default size (width or height) of viewport.
// //
// defaultViewportSize also represents the maximum size of a framebuffer. // defaultViewportSize also represents the maximum size of a framebuffer
const defaultViewportSize = 4096 // and of an Image (it is used to declare MaxImageSize).
//
// For portability reasons it must be a power of two.
const defaultViewportSize = 8192
// viewportSize returns the viewport size of the framebuffer. // viewportSize returns the viewport size of the framebuffer.
func (f *framebuffer) viewportSize() (int, int) { func (f *framebuffer) viewportSize() (int, int) {