From 6a32252403781b303d4ebd195932ce39c5b1c08e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 30 Jul 2019 16:03:58 +0200 Subject: Update to 5.43 --- hacks/glx/hypertorus.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hacks/glx/hypertorus.c') diff --git a/hacks/glx/hypertorus.c b/hacks/glx/hypertorus.c index df64923..8aa8d4d 100644 --- a/hacks/glx/hypertorus.c +++ b/hacks/glx/hypertorus.c @@ -736,6 +736,10 @@ static void display_hypertorus(ModeInfo *mi) glMatrixMode(GL_MODELVIEW); glLoadIdentity(); + /* Let's keep a constant aspect ratio rather than stretching with the + shape of the window */ + glScalef (hp->WindH / (GLfloat) hp->WindW, 1, 1); + mi->polygon_count = hypertorus(mi,0.0,2.0*M_PI,0.0,2.0*M_PI,64,64); } -- cgit v1.2.3-55-g7522