Ooops, forgot to dump a few fields in some events...

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@647 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-06-30 11:45:34 +00:00
parent 9b175ab2e6
commit a3c6ceb012

View File

@ -725,31 +725,34 @@ static void fghPrintEvent( XEvent *event )
"%02x", e->key_vector[ i ] ); "%02x", e->key_vector[ i ] );
} }
buf[ i ] = '\0'; buf[ i ] = '\0';
fgWarning( "%s: %s", fghTypeToString( e->type ), buf ); fgWarning( "%s: window=0x%x, %s", fghTypeToString( e->type ), e->window,
buf );
break; break;
} }
case Expose: { case Expose: {
XExposeEvent *e = &event->xexpose; XExposeEvent *e = &event->xexpose;
fgWarning( "%s: (x,y)=(%d,%d), (width,height)=(%d,%d), count=%d", fgWarning( "%s: window=0x%x, (x,y)=(%d,%d), (width,height)=(%d,%d), "
fghTypeToString( e->type ), e->x, e->y, e->width, e->height, "count=%d", fghTypeToString( e->type ), e->window, e->x,
e->count ); e->y, e->width, e->height, e->count );
break; break;
} }
case GraphicsExpose: { case GraphicsExpose: {
XGraphicsExposeEvent *e = &event->xgraphicsexpose; XGraphicsExposeEvent *e = &event->xgraphicsexpose;
fgWarning( "%s: (x,y)=(%d,%d), (width,height)=(%d,%d), count=%d, " fgWarning( "%s: drawable=0x%x, (x,y)=(%d,%d), (width,height)=(%d,%d), "
"(major_code,minor_code)=(%d,%d)", "count=%d, (major_code,minor_code)=(%d,%d)",
fghTypeToString( e->type ), e->x, e->y, e->width, e->height, fghTypeToString( e->type ), e->drawable, e->x, e->y,
e->count, e->major_code, e->minor_code ); e->width, e->height, e->count, e->major_code,
e->minor_code );
break; break;
} }
case NoExpose: { case NoExpose: {
XNoExposeEvent *e = &event->xnoexpose; XNoExposeEvent *e = &event->xnoexpose;
fgWarning( "%s: (major_code,minor_code)=(%d,%d)", fgWarning( "%s: drawable=0x%x, (major_code,minor_code)=(%d,%d)",
fghTypeToString( e->type ), e->major_code, e->minor_code ); fghTypeToString( e->type ), e->drawable, e->major_code,
e->minor_code );
break; break;
} }