Mercurial > mplayer.hg
comparison vidix/radeon_vid.c @ 37034:cc50b327cffa
vidix: fix bad shift.
Shifting an int left by 32 is undefined.
Since it's not performance-critical, just do a
64 bit shift instead.
author | reimar |
---|---|
date | Sun, 06 Apr 2014 18:13:47 +0000 |
parents | 28ea3e45b03a |
children | 3c5c93a30fb7 |
comparison
equal
deleted
inserted
replaced
37033:de0c74742689 | 37034:cc50b327cffa |
---|---|
3392 besr.ckey_on=0; | 3392 besr.ckey_on=0; |
3393 besr.graphics_key_msk=0; | 3393 besr.graphics_key_msk=0; |
3394 besr.graphics_key_clr=0; | 3394 besr.graphics_key_clr=0; |
3395 } | 3395 } |
3396 #ifdef RAGE128 | 3396 #ifdef RAGE128 |
3397 besr.graphics_key_msk=(1<<dbpp)-1; | 3397 besr.graphics_key_msk=(1ull<<dbpp)-1; |
3398 besr.ckey_cntl = VIDEO_KEY_FN_TRUE|GRAPHIC_KEY_FN_NE|CMP_MIX_AND; | 3398 besr.ckey_cntl = VIDEO_KEY_FN_TRUE|GRAPHIC_KEY_FN_NE|CMP_MIX_AND; |
3399 #else | 3399 #else |
3400 besr.graphics_key_msk=besr.graphics_key_clr; | 3400 besr.graphics_key_msk=besr.graphics_key_clr; |
3401 besr.ckey_cntl = VIDEO_KEY_FN_TRUE|CMP_MIX_AND|GRAPHIC_KEY_FN_EQ; | 3401 besr.ckey_cntl = VIDEO_KEY_FN_TRUE|CMP_MIX_AND|GRAPHIC_KEY_FN_EQ; |
3402 #endif | 3402 #endif |