Changeset 83256 in vbox
- Timestamp:
- Mar 11, 2020 10:57:46 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r83156 r83256 2752 2752 { 2753 2753 uint8_t bDst = 0; 2754 uint8_t fBit = 1;2754 uint8_t fBit = 0x80; 2755 2755 do 2756 2756 { … … 2760 2760 | (pThis->last_palette[idxPal] >> 16)) & 0xff) > 0xfc) 2761 2761 bDst |= fBit; 2762 fBit <<= 1;2762 fBit >>= 1; 2763 2763 x++; 2764 2764 } while (x < cx && (x & 7)); … … 2775 2775 { 2776 2776 uint8_t bDst = 0; 2777 uint8_t fBit = 1;2777 uint8_t fBit = 0x80; 2778 2778 do 2779 2779 { 2780 2780 if ((pbSrc[x * 2] | (pbSrc[x * 2 + 1] & 0x7f)) >= 0xfc) 2781 2781 bDst |= fBit; 2782 fBit <<= 1;2782 fBit >>= 1; 2783 2783 x++; 2784 2784 } while (x < cx && (x & 7)); … … 2795 2795 { 2796 2796 uint8_t bDst = 0; 2797 uint8_t fBit = 1;2797 uint8_t fBit = 0x80; 2798 2798 do 2799 2799 { 2800 2800 if ((pbSrc[x * 2] | pbSrc[x * 2 + 1]) >= 0xfc) 2801 2801 bDst |= fBit; 2802 fBit <<= 1;2802 fBit >>= 1; 2803 2803 x++; 2804 2804 } while (x < cx && (x & 7)); … … 2815 2815 { 2816 2816 uint8_t bDst = 0; 2817 uint8_t fBit = 1;2817 uint8_t fBit = 0x80; 2818 2818 do 2819 2819 { 2820 2820 if ((pbSrc[x * 3] | pbSrc[x * 3 + 1] | pbSrc[x * 3 + 2]) >= 0xfc) 2821 2821 bDst |= fBit; 2822 fBit <<= 1;2822 fBit >>= 1; 2823 2823 x++; 2824 2824 } while (x < cx && (x & 7)); … … 2835 2835 { 2836 2836 uint8_t bDst = 0; 2837 uint8_t fBit = 1;2837 uint8_t fBit = 0x80; 2838 2838 do 2839 2839 { 2840 2840 if ((pbSrc[x * 4] | pbSrc[x * 4 + 1] | pbSrc[x * 4 + 2] | pbSrc[x * 4 + 3]) >= 0xfc) 2841 2841 bDst |= fBit; 2842 fBit <<= 1;2842 fBit >>= 1; 2843 2843 x++; 2844 2844 } while (x < cx && (x & 7));
Note:
See TracChangeset
for help on using the changeset viewer.

