nicer output to terminal in Position callback
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1481 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
409ca5b133
commit
95b2935ce9
@ -168,7 +168,7 @@ void Position(int x, int y)
|
|||||||
{
|
{
|
||||||
int win = glutGetWindow();
|
int win = glutGetWindow();
|
||||||
|
|
||||||
printf("position %s, %dx%d\n",win==nWindow?"main":"child",
|
printf("position, %s: %dx%d\n",win==nWindow?"top-left of main":"top-left of child relative to parent",
|
||||||
x, y);
|
x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user