From 76ad23bc0d04c3d854e1d558545c44576fdce348 Mon Sep 17 00:00:00 2001 From: Don Pellegrino Date: Thu, 18 Jun 2009 21:14:34 +0000 Subject: Implemented zooming. --- diff --git a/src/controller/exp004reshape.c b/src/controller/exp004reshape.c index f3d7098..4d46223 100644 --- a/src/controller/exp004reshape.c +++ b/src/controller/exp004reshape.c @@ -1,7 +1,7 @@ #include "exp004reshape.h" +#include "set_ortho.h" #include "../view/exp004state0.h" #include -#include #define S exp004state0 @@ -41,16 +41,7 @@ exp004reshape (int w, int h) S.ortho_max; } - gluOrtho2D(S.ortho.min_x, - S.ortho.max_x, - S.ortho.min_y, - S.ortho.max_y); - - printf ("Ortho: %f %f %f %f\n", - S.ortho.min_x, - S.ortho.max_x, - S.ortho.min_y, - S.ortho.max_y); + set_ortho (); glMatrixMode (GL_MODELVIEW); -- cgit v0.8.3.1-22-g547a