Home | History | Annotate | Download | only in qemu

Lines Matching full:rgba

236 /* convert a RGBA color to a color index usable in graphic primitives */
237 static unsigned int vga_get_color(DisplayState *ds, unsigned int rgba)
244 r = (rgba >> 16) & 0xff;
245 g = (rgba >> 8) & 0xff;
246 b = (rgba) & 0xff;
253 r = (rgba >> 16) & 0xff;
254 g = (rgba >> 8) & 0xff;
255 b = (rgba) & 0xff;
259 r = (rgba >> 16) & 0xff;
260 g = (rgba >> 8) & 0xff;
261 b = (rgba) & 0xff;
266 color = rgba;