summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-05-20 14:11:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-05-20 14:11:11 +0000
commite3e8067db7f7dfdb36c4697687dc9026c9a2669b (patch)
tree597511bebae02209bea44ceeed32df21193a83ff /progs
parent8f384f0b67f133a384c30e483b1a332ae21de152 (diff)
downloadexternal_mesa3d-e3e8067db7f7dfdb36c4697687dc9026c9a2669b.zip
external_mesa3d-e3e8067db7f7dfdb36c4697687dc9026c9a2669b.tar.gz
external_mesa3d-e3e8067db7f7dfdb36c4697687dc9026c9a2669b.tar.bz2
use MAX_SCREENS instead of hard-coded number
Diffstat (limited to 'progs')
-rw-r--r--progs/egl/eglinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/egl/eglinfo.c b/progs/egl/eglinfo.c
index ec50468..7d71640 100644
--- a/progs/egl/eglinfo.c
+++ b/progs/egl/eglinfo.c
@@ -33,6 +33,7 @@
#define MAX_CONFIGS 1000
#define MAX_MODES 1000
+#define MAX_SCREENS 10
/**
@@ -98,11 +99,11 @@ PrintModes(EGLDisplay d)
#ifdef EGL_MESA_screen_surface
const char *extensions = eglQueryString(d, EGL_EXTENSIONS);
if (strstr(extensions, "EGL_MESA_screen_surface")) {
- EGLScreenMESA screens[20];
+ EGLScreenMESA screens[MAX_SCREENS];
EGLint numScreens = 1, scrn;
EGLModeMESA modes[MAX_MODES];
- eglGetScreensMESA(d, screens, 20, &numScreens);
+ eglGetScreensMESA(d, screens, MAX_SCREENS, &numScreens);
printf("Number of Screens: %d\n\n", numScreens);
for (scrn = 0; scrn < numScreens; scrn++) {