diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-05-14 19:32:11 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-05-14 19:32:11 +0000 |
commit | 68f04a3c629c911a2ecf3d18d925f5ab28211fec (patch) | |
tree | fbd7fed3e335e54a5a44f3be3cad774056584fc7 | |
parent | d08555c17ac9b3c51e9a2bc7d2b12891241c29ae (diff) |
vga: make some tables 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | hw/vga.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1171,7 +1171,7 @@ static inline int get_depth_index(DisplayState *s) } } -static vga_draw_glyph8_func *vga_draw_glyph8_table[NB_DEPTHS] = { +static vga_draw_glyph8_func * const vga_draw_glyph8_table[NB_DEPTHS] = { vga_draw_glyph8_8, vga_draw_glyph8_16, vga_draw_glyph8_16, @@ -1181,7 +1181,7 @@ static vga_draw_glyph8_func *vga_draw_glyph8_table[NB_DEPTHS] = { vga_draw_glyph8_16, }; -static vga_draw_glyph8_func *vga_draw_glyph16_table[NB_DEPTHS] = { +static vga_draw_glyph8_func * const vga_draw_glyph16_table[NB_DEPTHS] = { vga_draw_glyph16_8, vga_draw_glyph16_16, vga_draw_glyph16_16, @@ -1191,7 +1191,7 @@ static vga_draw_glyph8_func *vga_draw_glyph16_table[NB_DEPTHS] = { vga_draw_glyph16_16, }; -static vga_draw_glyph9_func *vga_draw_glyph9_table[NB_DEPTHS] = { +static vga_draw_glyph9_func * const vga_draw_glyph9_table[NB_DEPTHS] = { vga_draw_glyph9_8, vga_draw_glyph9_16, vga_draw_glyph9_16, @@ -1251,7 +1251,7 @@ static void vga_get_text_resolution(VGACommonState *s, int *pwidth, int *pheight typedef unsigned int rgb_to_pixel_dup_func(unsigned int r, unsigned int g, unsigned b); -static rgb_to_pixel_dup_func *rgb_to_pixel_dup_table[NB_DEPTHS] = { +static rgb_to_pixel_dup_func * const rgb_to_pixel_dup_table[NB_DEPTHS] = { rgb_to_pixel8_dup, rgb_to_pixel15_dup, rgb_to_pixel16_dup, @@ -1447,7 +1447,7 @@ enum { VGA_DRAW_LINE_NB, }; -static vga_draw_line_func *vga_draw_line_table[NB_DEPTHS * VGA_DRAW_LINE_NB] = { +static vga_draw_line_func * const vga_draw_line_table[NB_DEPTHS * VGA_DRAW_LINE_NB] = { vga_draw_line2_8, vga_draw_line2_16, vga_draw_line2_16, |