From a86e49d505765c107739643a53ff35698033cce5 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Sun, 27 Apr 2014 16:04:34 +0200 Subject: [PATCH] clarifying density --- ld48-29.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ld48-29.go b/ld48-29.go index 78ba44d..dae8ab5 100644 --- a/ld48-29.go +++ b/ld48-29.go @@ -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)