Rev 4346 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4346 | Rev 4347 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | uint16_t vesa_width; |
54 | uint16_t vesa_width; |
55 | uint16_t vesa_height; |
55 | uint16_t vesa_height; |
56 | uint16_t vesa_bpp; |
56 | uint16_t vesa_bpp; |
57 | uint16_t vesa_scanline; |
57 | uint16_t vesa_scanline; |
58 | 58 | ||
- | 59 | uint8_t vesa_red_mask; |
|
- | 60 | uint8_t vesa_red_pos; |
|
- | 61 | ||
- | 62 | uint8_t vesa_green_mask; |
|
- | 63 | uint8_t vesa_green_pos; |
|
- | 64 | ||
- | 65 | uint8_t vesa_blue_mask; |
|
- | 66 | uint8_t vesa_blue_pos; |
|
- | 67 | ||
59 | int vesa_present(void) |
68 | int vesa_present(void) |
60 | { |
69 | { |
61 | if ((vesa_width != 0xffff) && (vesa_height != 0xffff)) |
70 | if ((vesa_width != 0xffff) && (vesa_height != 0xffff)) |
62 | return true; |
71 | return true; |
63 | 72 | ||
Line 71... | Line 80... | ||
71 | switch (vesa_bpp) { |
80 | switch (vesa_bpp) { |
72 | case 8: |
81 | case 8: |
73 | visual = VISUAL_INDIRECT_8; |
82 | visual = VISUAL_INDIRECT_8; |
74 | break; |
83 | break; |
75 | case 16: |
84 | case 16: |
- | 85 | if ((vesa_red_mask == 5) && (vesa_red_pos == 10) |
|
- | 86 | && (vesa_green_mask == 5) && (vesa_green_pos == 5) |
|
- | 87 | && (vesa_blue_mask == 5) && (vesa_blue_pos == 0)) |
|
- | 88 | visual = VISUAL_RGB_5_5_5; |
|
- | 89 | else |
|
76 | visual = VISUAL_RGB_5_6_5; |
90 | visual = VISUAL_RGB_5_6_5; |
77 | break; |
91 | break; |
78 | case 24: |
92 | case 24: |
79 | visual = VISUAL_RGB_8_8_8; |
93 | visual = VISUAL_RGB_8_8_8; |
80 | break; |
94 | break; |
81 | case 32: |
95 | case 32: |