基础图像显示¶ Overview¶ 从 loader 传入 显示缓冲区 基址 按照 Uefi BGRR 的格式写入缓冲区 Color¶ u32 color_t RGB -> BGRR (u32)¶ 使用宏来完成: 1 2 3 4 5#define A_COLOR(color) \ ((u32)(color & 0xff)) #define RGB_COLOR(r, g, b) \ ((A_COLOR(b)) | (A_COLOR(g) << 8) | (A_COLOR(r) << 16) | A_COLOR(0) << 24)