Revision 5fafdf24 hw/cirrus_vga_rop2.h
b/hw/cirrus_vga_rop2.h | ||
---|---|---|
1 | 1 |
/* |
2 | 2 |
* QEMU Cirrus CLGD 54xx VGA Emulator. |
3 |
*
|
|
3 |
* |
|
4 | 4 |
* Copyright (c) 2004 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 |
... | ... | |
34 | 34 |
#define PUTPIXEL() ROP_OP(((uint32_t *)d)[0], col) |
35 | 35 |
#else |
36 | 36 |
#error unsupported DEPTH |
37 |
#endif
|
|
37 |
#endif |
|
38 | 38 |
|
39 | 39 |
static void |
40 | 40 |
glue(glue(glue(cirrus_patternfill_, ROP_NAME), _),DEPTH) |
41 | 41 |
(CirrusVGAState * s, uint8_t * dst, |
42 |
const uint8_t * src,
|
|
43 |
int dstpitch, int srcpitch,
|
|
42 |
const uint8_t * src, |
|
43 |
int dstpitch, int srcpitch, |
|
44 | 44 |
int bltwidth, int bltheight) |
45 | 45 |
{ |
46 | 46 |
uint8_t *d; |
... | ... | |
94 | 94 |
static void |
95 | 95 |
glue(glue(glue(cirrus_colorexpand_transp_, ROP_NAME), _),DEPTH) |
96 | 96 |
(CirrusVGAState * s, uint8_t * dst, |
97 |
const uint8_t * src,
|
|
98 |
int dstpitch, int srcpitch,
|
|
97 |
const uint8_t * src, |
|
98 |
int dstpitch, int srcpitch, |
|
99 | 99 |
int bltwidth, int bltheight) |
100 | 100 |
{ |
101 | 101 |
uint8_t *d; |
... | ... | |
143 | 143 |
static void |
144 | 144 |
glue(glue(glue(cirrus_colorexpand_, ROP_NAME), _),DEPTH) |
145 | 145 |
(CirrusVGAState * s, uint8_t * dst, |
146 |
const uint8_t * src,
|
|
147 |
int dstpitch, int srcpitch,
|
|
146 |
const uint8_t * src, |
|
147 |
int dstpitch, int srcpitch, |
|
148 | 148 |
int bltwidth, int bltheight) |
149 | 149 |
{ |
150 | 150 |
uint32_t colors[2]; |
... | ... | |
179 | 179 |
static void |
180 | 180 |
glue(glue(glue(cirrus_colorexpand_pattern_transp_, ROP_NAME), _),DEPTH) |
181 | 181 |
(CirrusVGAState * s, uint8_t * dst, |
182 |
const uint8_t * src,
|
|
183 |
int dstpitch, int srcpitch,
|
|
182 |
const uint8_t * src, |
|
183 |
int dstpitch, int srcpitch, |
|
184 | 184 |
int bltwidth, int bltheight) |
185 | 185 |
{ |
186 | 186 |
uint8_t *d; |
... | ... | |
223 | 223 |
static void |
224 | 224 |
glue(glue(glue(cirrus_colorexpand_pattern_, ROP_NAME), _),DEPTH) |
225 | 225 |
(CirrusVGAState * s, uint8_t * dst, |
226 |
const uint8_t * src,
|
|
227 |
int dstpitch, int srcpitch,
|
|
226 |
const uint8_t * src, |
|
227 |
int dstpitch, int srcpitch, |
|
228 | 228 |
int bltwidth, int bltheight) |
229 | 229 |
{ |
230 | 230 |
uint32_t colors[2]; |
... | ... | |
254 | 254 |
} |
255 | 255 |
} |
256 | 256 |
|
257 |
static void
|
|
257 |
static void |
|
258 | 258 |
glue(glue(glue(cirrus_fill_, ROP_NAME), _),DEPTH) |
259 | 259 |
(CirrusVGAState *s, |
260 |
uint8_t *dst, int dst_pitch,
|
|
260 |
uint8_t *dst, int dst_pitch, |
|
261 | 261 |
int width, int height) |
262 | 262 |
{ |
263 | 263 |
uint8_t *d, *d1; |
Also available in: Unified diff