aboutsummaryrefslogtreecommitdiffstats
path: root/hw/g364fb_template.h
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-17 01:44:53 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-17 01:44:53 +0000
commit221bb2d563aec566c6104ed1286aa2fd7f58c3f2 (patch)
tree8fc78c7c71394708c385f480c6b4c9ac7c182234 /hw/g364fb_template.h
parente64995dbc1a993f51b71575f83ba7c752b1b1c7a (diff)
Fix g364fb video emulation
(Hervé Poussineau) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5016 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/g364fb_template.h')
-rw-r--r--hw/g364fb_template.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/g364fb_template.h b/hw/g364fb_template.h
index f16f5e609..43755966e 100644
--- a/hw/g364fb_template.h
+++ b/hw/g364fb_template.h
@@ -27,11 +27,11 @@ static void glue(g364fb_draw_graphic, BPP)(G364State *s, int full_update)
uint8_t *data_display, *dd;
data_buffer = s->vram_buffer;
- w_display = s->last_scr_width * PIXEL_WIDTH / 8;
+ w_display = s->scr_width * PIXEL_WIDTH / 8;
data_display = s->ds->data;
- for(i = 0; i < s->last_scr_height; i++) {
+ for(i = 0; i < s->scr_height; i++) {
dd = data_display;
- for (j = 0; j < s->last_scr_width; j++, dd += PIXEL_WIDTH / 8, data_buffer++) {
+ for (j = 0; j < s->scr_width; j++, dd += PIXEL_WIDTH / 8, data_buffer++) {
uint8_t index = *data_buffer;
*((glue(glue(uint, PIXEL_WIDTH), _t) *)dd) = glue(rgb_to_pixel, BPP)(
s->palette[index][0],