summaryrefslogtreecommitdiffstats
path: root/hacks/glx/polytopes.c
diff options
context:
space:
mode:
authorSimon Rettberg2020-12-02 08:35:55 +0100
committerSimon Rettberg2020-12-02 08:35:55 +0100
commite5319b91d163384ee22db077b2d37688d65646c9 (patch)
tree04acbf822516634814098b38a9878ffc1a55529d /hacks/glx/polytopes.c
parentdriver/timers.c: fix flush_events() (diff)
parent5.44 (diff)
downloadxscreensaver-e5319b91d163384ee22db077b2d37688d65646c9.tar.gz
xscreensaver-e5319b91d163384ee22db077b2d37688d65646c9.tar.xz
xscreensaver-e5319b91d163384ee22db077b2d37688d65646c9.zip
Merge branch 'master' into openslx
Diffstat (limited to 'hacks/glx/polytopes.c')
-rw-r--r--hacks/glx/polytopes.c10
1 files changed, 2 insertions, 8 deletions
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 <carsten@mirsanmir.org>. */
+/* Copyright (c) 2003-2019 Carsten Steger <carsten@mirsanmir.org>. */
/*
* 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;
}