summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-11-27 21:04:18 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-11-27 21:04:18 +0000
commit78b5f5f44fd6326d280f1c71f337f613cf2e38a1 (patch)
treed1674429e7f5668c20f98213a6c447a72d87775f /progs
parent8a82d9db1550e6995b5cef3210164b1a661babed (diff)
remove resize() function
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/miniglxtest.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/progs/tests/miniglxtest.c b/progs/tests/miniglxtest.c
index ec951dd8cb4..a1c1681e77e 100644
--- a/progs/tests/miniglxtest.c
+++ b/progs/tests/miniglxtest.c
@@ -1,18 +1,16 @@
-/* $Id: miniglxtest.c,v 1.1.4.2 2002/11/27 17:02:39 brianp Exp $ */
+/* $Id: miniglxtest.c,v 1.1.4.3 2002/11/27 21:04:18 brianp Exp $ */
/*
* Test the mini GLX interface.
*/
-
#include <GL/gl.h>
#include <GL/miniglx.h>
#include <stdio.h>
#include <stdlib.h>
-
static void redraw( Display *dpy, Window w, int rot )
{
printf("Redraw event\n");
@@ -30,18 +28,6 @@ static void redraw( Display *dpy, Window w, int rot )
}
-
-static void resize( unsigned int width, unsigned int height )
-{
- printf("Resize event\n");
- glViewport( 0, 0, width, height );
- glMatrixMode( GL_PROJECTION );
- glLoadIdentity();
- glOrtho( -1.0, 1.0, -1.0, 1.0, -1.0, 1.0 );
-}
-
-
-
static Window make_rgb_db_window( Display *dpy,
unsigned int width, unsigned int height )
{
@@ -95,8 +81,6 @@ static void event_loop( Display *dpy, Window win )
{
int i;
- resize(1280, 1024);
-
printf("Hang on... drawing 5 frames\n");
for (i = 0; i < 5; i++) {
redraw( dpy, win, i*10 );
@@ -111,7 +95,7 @@ int main( int argc, char *argv[] )
dpy = WRAP(XOpenDisplay)(NULL);
- win = make_rgb_db_window( dpy, 1280, 1024);
+ win = make_rgb_db_window( dpy, 800, 600);
glShadeModel( GL_FLAT );
glClearColor( 0.5, 0.5, 0.5, 1.0 );