mirror of
https://github.com/lloeki/ld48-29.git
synced 2025-12-06 02:54:40 +01:00
clarifying density
This commit is contained in:
parent
d31785c5a1
commit
a86e49d505
1 changed files with 2 additions and 1 deletions
|
|
@ -298,7 +298,8 @@ func render(textures map[string]gl.Texture, lists map[string]uint) {
|
|||
// set viewport
|
||||
width := float32(640.0)
|
||||
height := float32(480.0)
|
||||
gl.Viewport(0, 0, int(width)*2, int(height)*2) // times 2 because HiDPI
|
||||
density := 2 // times 2 because HiDPI
|
||||
gl.Viewport(0, 0, int(width)*density, int(height)*density)
|
||||
gl.MatrixMode(gl.PROJECTION)
|
||||
gl.LoadIdentity()
|
||||
gl.Ortho(0, float64(width), 0, float64(height), -1.0, 1.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue