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/fullscreen.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/fullscreen.mm')
-rw-r--r-- | src/video/cocoa/fullscreen.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video/cocoa/fullscreen.mm b/src/video/cocoa/fullscreen.mm index db793a6b1..bd55852c3 100644 --- a/src/video/cocoa/fullscreen.mm +++ b/src/video/cocoa/fullscreen.mm @@ -494,9 +494,9 @@ public: for (uint32_t index = first_color; index < first_color + num_colors; index++) { /* Clamp colors between 0.0 and 1.0 */ CGDeviceColor color; - color.red = _cur_palette[index].r / 255.0; - color.blue = _cur_palette[index].b / 255.0; - color.green = _cur_palette[index].g / 255.0; + color.red = _cur_palette.palette[index].r / 255.0; + color.blue = _cur_palette.palette[index].b / 255.0; + color.green = _cur_palette.palette[index].g / 255.0; CGPaletteSetColorAtIndex(this->palette, color, index); } |