mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
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:
parent
ef5de62780
commit
a60976f260
@ -70,8 +70,11 @@ func newScreenFramebuffer(width, height int) *framebuffer {
|
||||
|
||||
// defaultViewportSize is the default size (width or height) of viewport.
|
||||
//
|
||||
// defaultViewportSize also represents the maximum size of a framebuffer.
|
||||
const defaultViewportSize = 4096
|
||||
// defaultViewportSize also represents the maximum size of a framebuffer
|
||||
// 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.
|
||||
func (f *framebuffer) viewportSize() (int, int) {
|
||||
|
Loading…
Reference in New Issue
Block a user