Commit 26489844dcc1d2f3e17c92210475e6f3e54b503e
1 parent
87ac5427
avoid name conflicts
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2015 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
18 additions
and
18 deletions
console.c
@@ -27,8 +27,8 @@ | @@ -27,8 +27,8 @@ | ||
27 | #define DEFAULT_BACKSCROLL 512 | 27 | #define DEFAULT_BACKSCROLL 512 |
28 | #define MAX_CONSOLES 12 | 28 | #define MAX_CONSOLES 12 |
29 | 29 | ||
30 | -#define RGBA(r, g, b, a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) | ||
31 | -#define RGB(r, g, b) RGBA(r, g, b, 0xff) | 30 | +#define QEMU_RGBA(r, g, b, a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) |
31 | +#define QEMU_RGB(r, g, b) QEMU_RGBA(r, g, b, 0xff) | ||
32 | 32 | ||
33 | typedef struct TextAttributes { | 33 | typedef struct TextAttributes { |
34 | uint8_t fgcol:4; | 34 | uint8_t fgcol:4; |
@@ -330,24 +330,24 @@ enum color_names { | @@ -330,24 +330,24 @@ enum color_names { | ||
330 | 330 | ||
331 | static const uint32_t color_table_rgb[2][8] = { | 331 | static const uint32_t color_table_rgb[2][8] = { |
332 | { /* dark */ | 332 | { /* dark */ |
333 | - RGB(0x00, 0x00, 0x00), /* black */ | ||
334 | - RGB(0xaa, 0x00, 0x00), /* red */ | ||
335 | - RGB(0x00, 0xaa, 0x00), /* green */ | ||
336 | - RGB(0xaa, 0xaa, 0x00), /* yellow */ | ||
337 | - RGB(0x00, 0x00, 0xaa), /* blue */ | ||
338 | - RGB(0xaa, 0x00, 0xaa), /* magenta */ | ||
339 | - RGB(0x00, 0xaa, 0xaa), /* cyan */ | ||
340 | - RGB(0xaa, 0xaa, 0xaa), /* white */ | 333 | + QEMU_RGB(0x00, 0x00, 0x00), /* black */ |
334 | + QEMU_RGB(0xaa, 0x00, 0x00), /* red */ | ||
335 | + QEMU_RGB(0x00, 0xaa, 0x00), /* green */ | ||
336 | + QEMU_RGB(0xaa, 0xaa, 0x00), /* yellow */ | ||
337 | + QEMU_RGB(0x00, 0x00, 0xaa), /* blue */ | ||
338 | + QEMU_RGB(0xaa, 0x00, 0xaa), /* magenta */ | ||
339 | + QEMU_RGB(0x00, 0xaa, 0xaa), /* cyan */ | ||
340 | + QEMU_RGB(0xaa, 0xaa, 0xaa), /* white */ | ||
341 | }, | 341 | }, |
342 | { /* bright */ | 342 | { /* bright */ |
343 | - RGB(0x00, 0x00, 0x00), /* black */ | ||
344 | - RGB(0xff, 0x00, 0x00), /* red */ | ||
345 | - RGB(0x00, 0xff, 0x00), /* green */ | ||
346 | - RGB(0xff, 0xff, 0x00), /* yellow */ | ||
347 | - RGB(0x00, 0x00, 0xff), /* blue */ | ||
348 | - RGB(0xff, 0x00, 0xff), /* magenta */ | ||
349 | - RGB(0x00, 0xff, 0xff), /* cyan */ | ||
350 | - RGB(0xff, 0xff, 0xff), /* white */ | 343 | + QEMU_RGB(0x00, 0x00, 0x00), /* black */ |
344 | + QEMU_RGB(0xff, 0x00, 0x00), /* red */ | ||
345 | + QEMU_RGB(0x00, 0xff, 0x00), /* green */ | ||
346 | + QEMU_RGB(0xff, 0xff, 0x00), /* yellow */ | ||
347 | + QEMU_RGB(0x00, 0x00, 0xff), /* blue */ | ||
348 | + QEMU_RGB(0xff, 0x00, 0xff), /* magenta */ | ||
349 | + QEMU_RGB(0x00, 0xff, 0xff), /* cyan */ | ||
350 | + QEMU_RGB(0xff, 0xff, 0xff), /* white */ | ||
351 | } | 351 | } |
352 | }; | 352 | }; |
353 | 353 |