aboutsummaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-11-22 12:56:10 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-12-06 09:56:40 +0000
commit0eba62e03292ff91201358fd544cadfbff36f1bf (patch)
treebebb2fd1113731632d3053bd8afb4f4641d707dd /console.c
parent95d8f9f41c313c458dd34e0a54162c414a352111 (diff)
downloadqemu-0eba62e03292ff91201358fd544cadfbff36f1bf.zip
qemu-0eba62e03292ff91201358fd544cadfbff36f1bf.tar.gz
qemu-0eba62e03292ff91201358fd544cadfbff36f1bf.tar.bz2
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>
Diffstat (limited to 'console.c')
-rw-r--r--console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/console.c b/console.c
index ce0429d..223f8fd 100644
--- a/console.c
+++ b/console.c
@@ -1688,6 +1688,7 @@ PixelFormat qemu_default_pixelformat(int bpp)
pf.rbits = 8;
pf.gbits = 8;
pf.bbits = 8;
+ break;
case 32:
pf.rmask = 0x00FF0000;
pf.gmask = 0x0000FF00;