From 26abffe5ba6dec1f851255a716ea577c4f6e7ab9 Mon Sep 17 00:00:00 2001 From: Nicolas Bruguier Date: Sat, 29 Nov 2008 14:10:54 +0100 Subject: [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. --- examples/glitzinfo/glitzinfo.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'examples') 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"); -- cgit v1.2.3