diff options
author | rubidium <rubidium@openttd.org> | 2011-12-08 18:13:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-08 18:13:29 +0000 |
commit | 2ccbd2a6f5d0e3b9000122fe1845482241334f41 (patch) | |
tree | d8a346dc40e1f7f85376c413a0c12065e277ae49 /src/video/cocoa/wnd_quartz.mm | |
parent | 9e8b76650a084bb26b32113317933217b1d99e42 (diff) | |
download | openttd-2ccbd2a6f5d0e3b9000122fe1845482241334f41.tar.xz |
(svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure
Diffstat (limited to 'src/video/cocoa/wnd_quartz.mm')
-rw-r--r-- | src/video/cocoa/wnd_quartz.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index 1fb85e011..5d45dcbab 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -468,9 +468,9 @@ void WindowQuartzSubdriver::UpdatePalette(uint first_color, uint num_colors) for (uint i = first_color; i < first_color + num_colors; i++) { uint32 clr = 0xff000000; - clr |= (uint32)_cur_palette[i].r << 16; - clr |= (uint32)_cur_palette[i].g << 8; - clr |= (uint32)_cur_palette[i].b; + clr |= (uint32)_cur_palette.palette[i].r << 16; + clr |= (uint32)_cur_palette.palette[i].g << 8; + clr |= (uint32)_cur_palette.palette[i].b; this->palette[i] = clr; } |