diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-24 19:29:13 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-24 19:29:13 +0000 |
commit | 0e1f5a0c495dd7a5c72c9321a29541bdde8f423a (patch) | |
tree | 374c5da7054c16f764a1cb2b5079d612cf417dac /hw/ssd0323.c | |
parent | cab3bee2d6f1d6eb6ad74006b8a63562cda9ba4d (diff) | |
download | qemu-0e1f5a0c495dd7a5c72c9321a29541bdde8f423a.zip qemu-0e1f5a0c495dd7a5c72c9321a29541bdde8f423a.tar.gz qemu-0e1f5a0c495dd7a5c72c9321a29541bdde8f423a.tar.bz2 |
Introduce accessors for DisplayState (Stefano Stabellini)
Introducing some accessors:
ds_get_linesize
ds_get_bits_per_pixel
ds_get_width
ds_get_height
ds_get_data
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@5789 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ssd0323.c')
-rw-r--r-- | hw/ssd0323.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/ssd0323.c b/hw/ssd0323.c index e496fe7..29cd52c 100644 --- a/hw/ssd0323.c +++ b/hw/ssd0323.c @@ -187,7 +187,7 @@ static void ssd0323_update_display(void *opaque) if (!s->redraw) return; - switch (s->ds->depth) { + switch (ds_get_bits_per_pixel(s->ds)) { case 0: return; case 15: @@ -210,7 +210,7 @@ static void ssd0323_update_display(void *opaque) for (i = 0; i < 16; i++) { int n; colors[i] = p; - switch (s->ds->depth) { + switch (ds_get_bits_per_pixel(s->ds)) { case 15: n = i * 2 + (i >> 3); p[0] = n | (n << 5); @@ -233,7 +233,7 @@ static void ssd0323_update_display(void *opaque) p += dest_width; } /* TODO: Implement row/column remapping. */ - dest = s->ds->data; + dest = ds_get_data(s->ds); for (y = 0; y < 64; y++) { line = y; src = s->framebuffer + 64 * line; |