From 0e1f5a0c495dd7a5c72c9321a29541bdde8f423a Mon Sep 17 00:00:00 2001 From: aliguori Date: Mon, 24 Nov 2008 19:29:13 +0000 Subject: 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 Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5789 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pl110.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hw/pl110.c') diff --git a/hw/pl110.c b/hw/pl110.c index 2437185..06541ae 100644 --- a/hw/pl110.c +++ b/hw/pl110.c @@ -124,7 +124,7 @@ static void pl110_update_display(void *opaque) if (!pl110_enabled(s)) return; - switch (s->ds->depth) { + switch (ds_get_bits_per_pixel(s->ds)) { case 0: return; case 8: @@ -190,7 +190,7 @@ static void pl110_update_display(void *opaque) if (base > 0x80000000) base -= 0x80000000; src = phys_ram_base + base; - dest = s->ds->data; + dest = ds_get_data(s->ds); first = -1; addr = base; @@ -249,7 +249,7 @@ static void pl110_update_pallette(pl110_state *s, int n) b = (raw & 0x1f) << 3; /* The I bit is ignored. */ raw >>= 6; - switch (s->ds->depth) { + switch (ds_get_bits_per_pixel(s->ds)) { case 8: s->pallette[n] = rgb_to_pixel8(r, g, b); break; -- cgit v1.1