diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-05-14 15:32:10 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-06-01 18:23:20 -0700 |
commit | 3c756ed39f93bd26bc81f6e3be0440429ad58c40 (patch) | |
tree | 31e42c5655842576b0ad159eb424bd4ee172ce3d /progs | |
parent | 76ad2b4a5a38389ed733d1bf31a6cbba1881dc10 (diff) | |
download | external_mesa3d-3c756ed39f93bd26bc81f6e3be0440429ad58c40.zip external_mesa3d-3c756ed39f93bd26bc81f6e3be0440429ad58c40.tar.gz external_mesa3d-3c756ed39f93bd26bc81f6e3be0440429ad58c40.tar.bz2 |
progs/wgl: Small cleanup to wglinfo.
Diffstat (limited to 'progs')
-rw-r--r-- | progs/wgl/wglinfo.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/progs/wgl/wglinfo.c b/progs/wgl/wglinfo.c index 43a216d..864372c 100644 --- a/progs/wgl/wglinfo.c +++ b/progs/wgl/wglinfo.c @@ -348,7 +348,6 @@ print_screen_info(HDC _hdc, GLboolean limits) HWND win; HGLRC ctx; int visinfo; - int width = 100, height = 100; HDC hdc; PIXELFORMATDESCRIPTOR pfd; @@ -367,15 +366,15 @@ print_screen_info(HDC _hdc, GLboolean limits) WS_CLIPSIBLINGS | WS_CLIPCHILDREN, CW_USEDEFAULT, CW_USEDEFAULT, - width, - height, + CW_USEDEFAULT, + CW_USEDEFAULT, NULL, NULL, wc.hInstance, NULL); if (!win) { fprintf(stderr, "Couldn't create window"); - exit(1); + return; } hdc = GetDC(win); @@ -476,7 +475,7 @@ print_visual_attribs_verbose(int iPixelFormat, LPPIXELFORMATDESCRIPTOR ppfd) ppfd->dwFlags & PFD_DRAW_TO_WINDOW ? 1 : 0); printf(" bufferSize=%d level=%d renderType=%s doubleBuffer=%d stereo=%d\n", 0 /* ppfd->bufferSize */, 0 /* ppfd->level */, - visual_render_type_name(ppfd->dwFlags), + visual_render_type_name(ppfd->iPixelType), ppfd->dwFlags & PFD_DOUBLEBUFFER ? 1 : 0, ppfd->dwFlags & PFD_STEREO ? 1 : 0); printf(" rgba: cRedBits=%d cGreenBits=%d cBlueBits=%d cAlphaBits=%d\n", |