# HG changeset patch # User michael # Date 1016738600 0 # Node ID f23cea00d19c0c0d961e05a25f54f184409f11cf # Parent b6877402482159c0bfad886fed40fafc1058c4c1 print meaningfull error message instead of "hmm, arpi said that isnt used... diff -r b68774024821 -r f23cea00d19c libvo/vo_x11.c --- a/libvo/vo_x11.c Thu Mar 21 18:59:07 2002 +0000 +++ b/libvo/vo_x11.c Thu Mar 21 19:23:20 2002 +0000 @@ -410,12 +410,22 @@ // printf( "No support for non-native XImage byte order!\n" ); // return -1; } - - if((mode==MODE_BGR) == (myximage->byte_order == LSBFirst) ) - { - printf("hmm, arpi said that isnt used, contact the developers, thats weird\n" ); + +#ifdef WORDS_BIGENDIAN + if(mode==MODE_BGR && bpp!=32){ + printf("BGR%d not supported, please contact the developers\n", bpp); return -1; } + if(mode==MODE_RGB && bpp==32){ + printf("RGB32 not supported on big-endian systems, please contact the developers\n"); + return -1; + } +#else + if(mode==MODE_BGR){ + printf("BGR not supported, please contact the developers\n"); + return -1; + } +#endif saver_off(mDisplay); return 0;