mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
console: Fix qemu_default_pixelformat() for 24 bpp
Falls through to 32 bpp. Harmless, because the only difference is the alpha component, and we're not using that. Spotted by Coverity. Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
95d8f9f41c
commit
0eba62e032
1 changed files with 1 additions and 0 deletions
|
|
@ -1688,6 +1688,7 @@ PixelFormat qemu_default_pixelformat(int bpp)
|
||||||
pf.rbits = 8;
|
pf.rbits = 8;
|
||||||
pf.gbits = 8;
|
pf.gbits = 8;
|
||||||
pf.bbits = 8;
|
pf.bbits = 8;
|
||||||
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
pf.rmask = 0x00FF0000;
|
pf.rmask = 0x00FF0000;
|
||||||
pf.gmask = 0x0000FF00;
|
pf.gmask = 0x0000FF00;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue