X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fpipes.c;h=e47361eaaaf8a1e0fffdacbd1fe3ee4ec8049e4a;hp=3defa33f343981a6fcdc8b91ec5d653df78e4432;hb=07faf451b99879183ed7e909e43a0e065be1ee7f;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439 diff --git a/hacks/glx/pipes.c b/hacks/glx/pipes.c index 3defa33f..e47361ea 100644 --- a/hacks/glx/pipes.c +++ b/hacks/glx/pipes.c @@ -475,21 +475,6 @@ MakeShape(ModeInfo * mi, int newdir) } } -ENTRYPOINT void -reshape_pipes(ModeInfo * mi, int width, int height) -{ - pipesstruct *pp = &pipes[MI_SCREEN(mi)]; - - glViewport(0, 0, pp->WindW = (GLint) width, pp->WindH = (GLint) height); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - /*glFrustum(-1.0, 1.0, -1.0, 1.0, 5.0, 15.0); */ - gluPerspective(65.0, (GLfloat) width / (GLfloat) height, 0.1, 20.0); - glMatrixMode(GL_MODELVIEW); - - glClear(GL_COLOR_BUFFER_BIT); -} - static void pinit(ModeInfo * mi, int zera) { @@ -609,6 +594,22 @@ pinit(ModeInfo * mi, int zera) pp->nowdir = SelectNeighbor(mi); } +ENTRYPOINT void +reshape_pipes(ModeInfo * mi, int width, int height) +{ + pipesstruct *pp = &pipes[MI_SCREEN(mi)]; + pinit(mi, 1); + + glViewport(0, 0, pp->WindW = (GLint) width, pp->WindH = (GLint) height); + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + /*glFrustum(-1.0, 1.0, -1.0, 1.0, 5.0, 15.0); */ + gluPerspective(65.0, (GLfloat) width / (GLfloat) height, 0.1, 20.0); + glMatrixMode(GL_MODELVIEW); + + glClear(GL_COLOR_BUFFER_BIT); +} + ENTRYPOINT void init_pipes (ModeInfo * mi) {