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:
parent
9b175ab2e6
commit
a3c6ceb012
@ -725,31 +725,34 @@ static void fghPrintEvent( XEvent *event )
|
||||
"%02x", e->key_vector[ i ] );
|
||||
}
|
||||
buf[ i ] = '\0';
|
||||
fgWarning( "%s: %s", fghTypeToString( e->type ), buf );
|
||||
fgWarning( "%s: window=0x%x, %s", fghTypeToString( e->type ), e->window,
|
||||
buf );
|
||||
break;
|
||||
}
|
||||
|
||||
case Expose: {
|
||||
XExposeEvent *e = &event->xexpose;
|
||||
fgWarning( "%s: (x,y)=(%d,%d), (width,height)=(%d,%d), count=%d",
|
||||
fghTypeToString( e->type ), e->x, e->y, e->width, e->height,
|
||||
e->count );
|
||||
fgWarning( "%s: window=0x%x, (x,y)=(%d,%d), (width,height)=(%d,%d), "
|
||||
"count=%d", fghTypeToString( e->type ), e->window, e->x,
|
||||
e->y, e->width, e->height, e->count );
|
||||
break;
|
||||
}
|
||||
|
||||
case GraphicsExpose: {
|
||||
XGraphicsExposeEvent *e = &event->xgraphicsexpose;
|
||||
fgWarning( "%s: (x,y)=(%d,%d), (width,height)=(%d,%d), count=%d, "
|
||||
"(major_code,minor_code)=(%d,%d)",
|
||||
fghTypeToString( e->type ), e->x, e->y, e->width, e->height,
|
||||
e->count, e->major_code, e->minor_code );
|
||||
fgWarning( "%s: drawable=0x%x, (x,y)=(%d,%d), (width,height)=(%d,%d), "
|
||||
"count=%d, (major_code,minor_code)=(%d,%d)",
|
||||
fghTypeToString( e->type ), e->drawable, e->x, e->y,
|
||||
e->width, e->height, e->count, e->major_code,
|
||||
e->minor_code );
|
||||
break;
|
||||
}
|
||||
|
||||
case NoExpose: {
|
||||
XNoExposeEvent *e = &event->xnoexpose;
|
||||
fgWarning( "%s: (major_code,minor_code)=(%d,%d)",
|
||||
fghTypeToString( e->type ), e->major_code, e->minor_code );
|
||||
fgWarning( "%s: drawable=0x%x, (major_code,minor_code)=(%d,%d)",
|
||||
fghTypeToString( e->type ), e->drawable, e->major_code,
|
||||
e->minor_code );
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user