From: Alan Hourihane Date: Sun, 17 Aug 2008 20:59:00 +0000 (+0100) Subject: pick first mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c9d0c7052112a888174828024b75767222915b9;p=mesa.git pick first mode --- diff --git a/progs/egl/eglgears.c b/progs/egl/eglgears.c index 20f6c1ff6ea..31346d95230 100644 --- a/progs/egl/eglgears.c +++ b/progs/egl/eglgears.c @@ -415,7 +415,7 @@ main(int argc, char *argv[]) eglGetModeAttribMESA(d, mode[i], EGL_WIDTH, &w); eglGetModeAttribMESA(d, mode[i], EGL_HEIGHT, &h); printf("%3d: %d x %d\n", i, w, h); - if (w > width && h > height && w <= 1280 && h <= 1024) { + if (w > width && h > height) { width = w; height = h; chosenMode = i; diff --git a/progs/egl/egltri.c b/progs/egl/egltri.c index 43190ba7e17..44096d94a27 100644 --- a/progs/egl/egltri.c +++ b/progs/egl/egltri.c @@ -201,7 +201,7 @@ int main(int argc, char *argv[]) eglGetModeAttribMESA(d, mode[i], EGL_WIDTH, &w); eglGetModeAttribMESA(d, mode[i], EGL_HEIGHT, &h); printf("%3d: %d x %d\n", i, w, h); - if (w > width && h > height && w <= 1024 && h <= 768) { + if (w > width && h > height) { width = w; height = h; chosenMode = i;