summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2008-11-29 14:10:54 +0100
committerNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2008-11-29 14:10:54 +0100
commit26abffe5ba6dec1f851255a716ea577c4f6e7ab9 (patch)
tree8e29982a09a498ca58a4d15bdbd5083d2278cad8 /examples
parent13f5d77fa51eabf015d92bd9e3003c2a307ba942 (diff)
[glitz] Add visual depth in drawable format.
Add visual depth setting in drawable format, because the depth size and depth can be differ. This parameter allow to select more easily a format for a visual depth.
Diffstat (limited to 'examples')
-rw-r--r--examples/glitzinfo/glitzinfo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/glitzinfo/glitzinfo.c b/examples/glitzinfo/glitzinfo.c
index 2824738..d4e5e14 100644
--- a/examples/glitzinfo/glitzinfo.c
+++ b/examples/glitzinfo/glitzinfo.c
@@ -99,8 +99,9 @@ print_format (glitz_drawable_format_t *format)
{
if (format)
{
- printf ("0x%x\t%d/%d/%d/%d \t%d\t%d\t%c\t%d\t%c\n",
+ printf ("0x%x\t%d\t%d/%d/%d/%d \t%d\t%d\t%c\t%d\t%c\n",
(int) format->id,
+ format->depth,
format->color.red_size,
format->color.green_size,
format->color.blue_size,
@@ -277,7 +278,7 @@ main (int argc, char **argv)
print_features (glitz_drawable_get_features (drawable));
printf ("\nWindow formats:\n");
- printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
+ printf ("id\tvdepth\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
printf ("-------------------------------------"
"-------------------------------------\n");
@@ -306,7 +307,7 @@ main (int argc, char **argv)
#endif
printf ("\nPbuffer formats:\n");
- printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
+ printf ("id\tvdepth\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
printf ("-------------------------------------"
"-------------------------------------\n");
@@ -315,7 +316,7 @@ main (int argc, char **argv)
i++;
printf ("\nOffscreen formats:\n");
- printf ("id\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
+ printf ("id\tvdepth\tr/g/b/a \tdepth\tstencil\tdb\tsamples\tscanline\n");
printf ("-------------------------------------"
"-------------------------------------\n");