diff options
author | Nicolas Bruguier <nicolas.bruguier@supersonicimagine.fr> | 2008-11-29 14:10:54 +0100 |
---|---|---|
committer | Nicolas Bruguier <nicolas.bruguier@supersonicimagine.fr> | 2008-11-29 14:10:54 +0100 |
commit | 26abffe5ba6dec1f851255a716ea577c4f6e7ab9 (patch) | |
tree | 8e29982a09a498ca58a4d15bdbd5083d2278cad8 /examples | |
parent | 13f5d77fa51eabf015d92bd9e3003c2a307ba942 (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.c | 9 |
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"); |