mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
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
This commit is contained in:
parent
cab3bee2d6
commit
0e1f5a0c49
20 changed files with 205 additions and 180 deletions
|
@ -46,12 +46,12 @@ static void glue(tc6393xb_draw_graphic, BITS)(struct tc6393xb_s *s)
|
|||
|
||||
data_buffer = (uint16_t*)(phys_ram_base + s->vram_addr);
|
||||
w_display = s->scr_width * BITS / 8;
|
||||
data_display = s->ds->data;
|
||||
data_display = ds_get_data(s->ds);
|
||||
for(i = 0; i < s->scr_height; i++) {
|
||||
#if (BITS == 16)
|
||||
memcpy(data_display, data_buffer, s->scr_width * 2);
|
||||
data_buffer += s->scr_width;
|
||||
data_display += s->ds->linesize;
|
||||
data_display += ds_get_linesize(s->ds);
|
||||
#else
|
||||
int j;
|
||||
for (j = 0; j < s->scr_width; j++, data_display += BITS / 8, data_buffer++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue