diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-21 19:23:20 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-21 19:23:20 +0000 |
commit | 6e8918ece233f52b902cacb9374e9f9ca450eefa (patch) | |
tree | 48ec7f7207c338ba071ff571f727e479dcbd862e /libvo/vo_x11.c | |
parent | 0b36dc013f828fefabbdda856e9d649a87d1d1bc (diff) | |
download | mpv-6e8918ece233f52b902cacb9374e9f9ca450eefa.tar.bz2 mpv-6e8918ece233f52b902cacb9374e9f9ca450eefa.tar.xz |
print meaningfull error message instead of "hmm, arpi said that isnt used...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5249 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 80a9cf2c44..41b99dc600 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -410,12 +410,22 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t // 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; |