Date: Thu, 28 Mar 2002 09:20:03 +0200
From: "Mike Gorchak" <mike@malva.ua> Subject: New QNX patch. Hi ! 1. Removed warning (possible bug) with invalid type, passing to the function in ph_WarpedMotion. 2. Rewritten handler of Ph_WM_RESIZE message, now works, but buggy (old handler doesn't work at all). 3. Added stub handler for Ph_WM_MAX (maximize) message. 4. Added more #ifdef HAVE_OPENGL to disable OpenGL stuff when it not needed. 5. Added support for SDL_NOFRAME and SDL_RESIZABLE flags (in OpenGL windows too). 6. Added cosmetic changes, if no SDL_RESIZABLE flag defined, disable resize handlers in window border and maximize button at caption. 7. Fixed my bug with invalid arguments count passed to PtCreateWidget call. 8. Fixed some palette problems. 9. Updated README.QNX file. And I changed testgl.c test application: 10. Added in testgl.c application support for SDL_NOFRAME flag and option -noframe. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40321
This commit is contained in:
parent
a437e285ca
commit
9ddae6eab1
4 changed files with 242 additions and 210 deletions
|
@ -393,7 +393,7 @@ void DrawLogoBlit(void)
|
|||
}
|
||||
|
||||
int RunGLTest( int argc, char* argv[],
|
||||
int logo, int slowly, int bpp, float gamma )
|
||||
int logo, int slowly, int bpp, float gamma, int noframe )
|
||||
{
|
||||
int i;
|
||||
int rgb_size[3];
|
||||
|
@ -447,6 +447,10 @@ int RunGLTest( int argc, char* argv[],
|
|||
}
|
||||
}
|
||||
|
||||
if (noframe) {
|
||||
video_flags |= SDL_NOFRAME;
|
||||
}
|
||||
|
||||
/* Initialize the display */
|
||||
switch (bpp) {
|
||||
case 8:
|
||||
|
@ -686,6 +690,7 @@ int main(int argc, char *argv[])
|
|||
int bpp = 0;
|
||||
int slowly;
|
||||
float gamma = 0.0;
|
||||
int noframe = 0;
|
||||
|
||||
logo = 0;
|
||||
slowly = 0;
|
||||
|
@ -711,15 +716,18 @@ int main(int argc, char *argv[])
|
|||
if ( strcmp(argv[i], "-gamma") == 0 ) {
|
||||
gamma = (float)atof(argv[++i]);
|
||||
}
|
||||
if ( strcmp(argv[i], "-noframe") == 0 ) {
|
||||
noframe = 1;
|
||||
}
|
||||
if ( strncmp(argv[i], "-h", 2) == 0 ) {
|
||||
printf(
|
||||
"Usage: %s [-twice] [-logo] [-slow] [-bpp n] [-gamma n]\n",
|
||||
"Usage: %s [-twice] [-logo] [-slow] [-bpp n] [-gamma n] [-noframe]\n",
|
||||
argv[0]);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
for ( i=0; i<numtests; ++i ) {
|
||||
RunGLTest(argc, argv, logo, slowly, bpp, gamma);
|
||||
RunGLTest(argc, argv, logo, slowly, bpp, gamma, noframe);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue