From e5fb1dc4dd17359c5769e4be4ece63df2c8bbade Mon Sep 17 00:00:00 2001 From: jsancho Date: Mon, 16 May 2011 06:13:51 +0000 Subject: [PATCH] --- src/gacela.c | 2 +- src/gacela.scm | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gacela.c b/src/gacela.c index 42bfdf0..ad85b74 100644 --- a/src/gacela.c +++ b/src/gacela.c @@ -31,7 +31,7 @@ register_functions (void* data) void load_scheme_files (char *path) { - // load_scheme_file (path, "gacela.scm"); + load_scheme_file (path, "gacela.scm"); } void diff --git a/src/gacela.scm b/src/gacela.scm index 38b57f0..5469156 100644 --- a/src/gacela.scm +++ b/src/gacela.scm @@ -106,13 +106,13 @@ (glEnable GL_LIGHTING)) (define (resize-screen-GL width height) - (glViewPort 0 0 width height) + (glViewport 0 0 width height) (glMatrixMode GL_PROJECTION) (glLoadIdentity) (cond ((3d-mode?) (let ((ratio (if (= height 0) width (/ width height)))) (gluPerspective 45 ratio 0.1 100))) ;0.1 - (else (let* ((w (/ width 2)) (-w (neg w)) (h (/ height 2)) (-h (neg h))) - (glOrtho -w w -h h 0 1)))) + (else (let* ((w (/ width 2)) (h (/ height 2))) + (glOrtho (- w) w (- h) h 0 1)))) (glMatrixMode GL_MODELVIEW) (glLoadIdentity) #t) -- 2.39.5