Revision 5fafdf24 hw/tcx.c

b/hw/tcx.c
1 1
/*
2 2
 * QEMU TCX Frame buffer
3
 * 
3
 *
4 4
 * Copyright (c) 2003-2005 Fabrice Bellard
5
 * 
5
 *
6 6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 7
 * of this software and associated documentation files (the "Software"), to deal
8 8
 * in the Software without restriction, including without limitation the rights
......
83 83
        tcx_invalidate_display(s);
84 84
}
85 85

  
86
static void tcx_draw_line32(TCXState *s1, uint8_t *d, 
86
static void tcx_draw_line32(TCXState *s1, uint8_t *d,
87 87
			    const uint8_t *s, int width)
88 88
{
89 89
    int x;
......
96 96
    }
97 97
}
98 98

  
99
static void tcx_draw_line16(TCXState *s1, uint8_t *d, 
99
static void tcx_draw_line16(TCXState *s1, uint8_t *d,
100 100
			    const uint8_t *s, int width)
101 101
{
102 102
    int x;
......
109 109
    }
110 110
}
111 111

  
112
static void tcx_draw_line8(TCXState *s1, uint8_t *d, 
112
static void tcx_draw_line8(TCXState *s1, uint8_t *d,
113 113
			   const uint8_t *s, int width)
114 114
{
115 115
    int x;
......
208 208
    case 0:
209 209
	return;
210 210
    }
211
    
211
   
212 212
    for(y = 0; y < ts->height; y += 4, page += TARGET_PAGE_SIZE) {
213 213
	if (cpu_physical_memory_get_dirty(page, VGA_DIRTY_FLAG)) {
214 214
	    if (y_start < 0)
......
232 232
	} else {
233 233
            if (y_start >= 0) {
234 234
                /* flush to display */
235
                dpy_update(ts->ds, 0, y_start, 
235
                dpy_update(ts->ds, 0, y_start,
236 236
                           ts->width, y - y_start);
237 237
                y_start = -1;
238 238
            }
......
242 242
    }
243 243
    if (y_start >= 0) {
244 244
	/* flush to display */
245
	dpy_update(ts->ds, 0, y_start, 
245
	dpy_update(ts->ds, 0, y_start,
246 246
		   ts->width, y - y_start);
247 247
    }
248 248
    /* reset modified pages */
......
353 353
static void tcx_save(QEMUFile *f, void *opaque)
354 354
{
355 355
    TCXState *s = opaque;
356
    
356
   
357 357
    qemu_put_be16s(f, (uint16_t *)&s->height);
358 358
    qemu_put_be16s(f, (uint16_t *)&s->width);
359 359
    qemu_put_be16s(f, (uint16_t *)&s->depth);

Also available in: Unified diff