Revision cedd91d2 hw/vga_template.h
b/hw/vga_template.h | ||
---|---|---|
154 | 154 |
/* |
155 | 155 |
* 4 color mode |
156 | 156 |
*/ |
157 |
static void glue(vga_draw_line2_, DEPTH)(VGAState *s1, uint8_t *d, |
|
157 |
static void glue(vga_draw_line2_, DEPTH)(VGACommonState *s1, uint8_t *d,
|
|
158 | 158 |
const uint8_t *s, int width) |
159 | 159 |
{ |
160 | 160 |
uint32_t plane_mask, *palette, data, v; |
... | ... | |
196 | 196 |
/* |
197 | 197 |
* 4 color mode, dup2 horizontal |
198 | 198 |
*/ |
199 |
static void glue(vga_draw_line2d2_, DEPTH)(VGAState *s1, uint8_t *d, |
|
199 |
static void glue(vga_draw_line2d2_, DEPTH)(VGACommonState *s1, uint8_t *d,
|
|
200 | 200 |
const uint8_t *s, int width) |
201 | 201 |
{ |
202 | 202 |
uint32_t plane_mask, *palette, data, v; |
... | ... | |
229 | 229 |
/* |
230 | 230 |
* 16 color mode |
231 | 231 |
*/ |
232 |
static void glue(vga_draw_line4_, DEPTH)(VGAState *s1, uint8_t *d, |
|
232 |
static void glue(vga_draw_line4_, DEPTH)(VGACommonState *s1, uint8_t *d,
|
|
233 | 233 |
const uint8_t *s, int width) |
234 | 234 |
{ |
235 | 235 |
uint32_t plane_mask, data, v, *palette; |
... | ... | |
261 | 261 |
/* |
262 | 262 |
* 16 color mode, dup2 horizontal |
263 | 263 |
*/ |
264 |
static void glue(vga_draw_line4d2_, DEPTH)(VGAState *s1, uint8_t *d, |
|
264 |
static void glue(vga_draw_line4d2_, DEPTH)(VGACommonState *s1, uint8_t *d,
|
|
265 | 265 |
const uint8_t *s, int width) |
266 | 266 |
{ |
267 | 267 |
uint32_t plane_mask, data, v, *palette; |
... | ... | |
295 | 295 |
* |
296 | 296 |
* XXX: add plane_mask support (never used in standard VGA modes) |
297 | 297 |
*/ |
298 |
static void glue(vga_draw_line8d2_, DEPTH)(VGAState *s1, uint8_t *d, |
|
298 |
static void glue(vga_draw_line8d2_, DEPTH)(VGACommonState *s1, uint8_t *d,
|
|
299 | 299 |
const uint8_t *s, int width) |
300 | 300 |
{ |
301 | 301 |
uint32_t *palette; |
... | ... | |
318 | 318 |
* |
319 | 319 |
* XXX: add plane_mask support (never used in standard VGA modes) |
320 | 320 |
*/ |
321 |
static void glue(vga_draw_line8_, DEPTH)(VGAState *s1, uint8_t *d, |
|
321 |
static void glue(vga_draw_line8_, DEPTH)(VGACommonState *s1, uint8_t *d,
|
|
322 | 322 |
const uint8_t *s, int width) |
323 | 323 |
{ |
324 | 324 |
uint32_t *palette; |
... | ... | |
414 | 414 |
/* |
415 | 415 |
* 15 bit color |
416 | 416 |
*/ |
417 |
static void glue(vga_draw_line15_, PIXEL_NAME)(VGAState *s1, uint8_t *d, |
|
417 |
static void glue(vga_draw_line15_, PIXEL_NAME)(VGACommonState *s1, uint8_t *d,
|
|
418 | 418 |
const uint8_t *s, int width) |
419 | 419 |
{ |
420 | 420 |
#if DEPTH == 15 && defined(HOST_WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN) |
... | ... | |
439 | 439 |
/* |
440 | 440 |
* 16 bit color |
441 | 441 |
*/ |
442 |
static void glue(vga_draw_line16_, PIXEL_NAME)(VGAState *s1, uint8_t *d, |
|
442 |
static void glue(vga_draw_line16_, PIXEL_NAME)(VGACommonState *s1, uint8_t *d,
|
|
443 | 443 |
const uint8_t *s, int width) |
444 | 444 |
{ |
445 | 445 |
#if DEPTH == 16 && defined(HOST_WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN) |
... | ... | |
464 | 464 |
/* |
465 | 465 |
* 24 bit color |
466 | 466 |
*/ |
467 |
static void glue(vga_draw_line24_, PIXEL_NAME)(VGAState *s1, uint8_t *d, |
|
467 |
static void glue(vga_draw_line24_, PIXEL_NAME)(VGACommonState *s1, uint8_t *d,
|
|
468 | 468 |
const uint8_t *s, int width) |
469 | 469 |
{ |
470 | 470 |
int w; |
... | ... | |
490 | 490 |
/* |
491 | 491 |
* 32 bit color |
492 | 492 |
*/ |
493 |
static void glue(vga_draw_line32_, PIXEL_NAME)(VGAState *s1, uint8_t *d, |
|
493 |
static void glue(vga_draw_line32_, PIXEL_NAME)(VGACommonState *s1, uint8_t *d,
|
|
494 | 494 |
const uint8_t *s, int width) |
495 | 495 |
{ |
496 | 496 |
#if DEPTH == 32 && defined(HOST_WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN) && !defined(BGR_FORMAT) |
Also available in: Unified diff