From 2954208d00d422b34fa3a69631b0a091f17a349d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 2 Dec 2020 08:23:52 +0100 Subject: 5.44 --- hacks/glx/polytopes.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'hacks/glx/polytopes.c') diff --git a/hacks/glx/polytopes.c b/hacks/glx/polytopes.c index c704722..333fcde 100644 --- a/hacks/glx/polytopes.c +++ b/hacks/glx/polytopes.c @@ -4,7 +4,7 @@ static const char sccsid[] = "@(#)polytopes.c 1.2 05/09/28 xlockmore"; #endif -/* Copyright (c) 2003-2009 Carsten Steger . */ +/* Copyright (c) 2003-2019 Carsten Steger . */ /* * Permission to use, copy, modify, and distribute this software and its @@ -2862,16 +2862,10 @@ static void display_polytopes(ModeInfo *mi) ENTRYPOINT void reshape_polytopes(ModeInfo *mi, int width, int height) { polytopesstruct *pp = &poly[MI_SCREEN(mi)]; - int y = 0; - - if (width > height * 5) { /* tiny window: show middle */ - height = width; - y = -height/2; - } pp->WindW = (GLint)width; pp->WindH = (GLint)height; - glViewport(0,y,width,height); + glViewport(0,0,width,height); pp->aspect = (GLfloat)width/(GLfloat)height; } -- cgit v1.2.3-55-g7522