path: root/console.h
diff options
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-26 15:37:30 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-26 15:37:30 +0000
commit90a1e3c0b5811d6b334085d56fba1f5f47eaaea3 (patch)
tree1d4ee628580028fe1a29b3f44670e2d26a4d867d /console.h
parent99b3718ee12ae5f1b41ccd848fb2f80ddb94a04e (diff)
vnc fixes and improvements (Stefano Stabellini)
this patch fixes a bug and improves the generic pixel conversion function in vnc.c. The bug is that when a new vnc client connects we need to reset the flag has_WMVi but currently we don't. The generic pixel conversion function is vnc_convert_pixel and currently is not very efficient since uses the division and multiplication operators. To make it more efficient I changed to use bit shift operators instead. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6441 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'console.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/console.h b/console.h
index 6e764b338..4a2f06fbd 100644
--- a/console.h
+++ b/console.h
@@ -83,6 +83,7 @@ struct PixelFormat {
uint32_t rmask, gmask, bmask, amask;
uint8_t rshift, gshift, bshift, ashift;
uint8_t rmax, gmax, bmax, amax;
+ uint8_t rbits, gbits, bbits, abits;
struct DisplaySurface {