Rev 4156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4156 | Rev 4678 | ||
---|---|---|---|
Line 83... | Line 83... | ||
83 | break; |
83 | break; |
84 | case 16: |
84 | case 16: |
85 | if ((vesa_red_mask == 5) && (vesa_red_pos == 10) |
85 | if ((vesa_red_mask == 5) && (vesa_red_pos == 10) |
86 | && (vesa_green_mask == 5) && (vesa_green_pos == 5) |
86 | && (vesa_green_mask == 5) && (vesa_green_pos == 5) |
87 | && (vesa_blue_mask == 5) && (vesa_blue_pos == 0)) |
87 | && (vesa_blue_mask == 5) && (vesa_blue_pos == 0)) |
88 | visual = VISUAL_RGB_5_5_5; |
88 | visual = VISUAL_BGR_5_5_5; |
89 | else |
89 | else |
90 | visual = VISUAL_RGB_5_6_5; |
90 | visual = VISUAL_BGR_5_6_5; |
91 | break; |
91 | break; |
92 | case 24: |
92 | case 24: |
93 | visual = VISUAL_RGB_8_8_8; |
93 | visual = VISUAL_BGR_8_8_8; |
94 | break; |
94 | break; |
95 | case 32: |
95 | case 32: |
96 | visual = VISUAL_RGB_0_8_8_8; |
96 | visual = VISUAL_BGR_8_8_8_0; |
97 | break; |
97 | break; |
98 | default: |
98 | default: |
99 | panic("Unsupported bits per pixel."); |
99 | panic("Unsupported bits per pixel."); |
100 | } |
100 | } |
101 | 101 |