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/screenshot.cpp | |
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/screenshot.cpp')
-rw-r--r-- | src/screenshot.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp index d5d63d113..5e8bf5971 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -725,7 +725,7 @@ static bool MakeSmallScreenshot() { const ScreenshotFormat *sf = _screenshot_formats + _cur_screenshot_format; return sf->proc(MakeScreenshotName(SCREENSHOT_NAME, sf->extension), CurrentScreenCallback, NULL, _screen.width, _screen.height, - BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth(), _cur_palette); + BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth(), _cur_palette.palette); } /** Make a zoomed-in screenshot of the currently visible area. */ @@ -746,7 +746,7 @@ static bool MakeZoomedInScreenshot() const ScreenshotFormat *sf = _screenshot_formats + _cur_screenshot_format; return sf->proc(MakeScreenshotName(SCREENSHOT_NAME, sf->extension), LargeWorldCallback, &vp, vp.width, vp.height, - BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth(), _cur_palette); + BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth(), _cur_palette.palette); } /** Make a screenshot of the whole map. */ @@ -772,7 +772,7 @@ static bool MakeWorldScreenshot() sf = _screenshot_formats + _cur_screenshot_format; return sf->proc(MakeScreenshotName(SCREENSHOT_NAME, sf->extension), LargeWorldCallback, &vp, vp.width, vp.height, - BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth(), _cur_palette); + BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth(), _cur_palette.palette); } /** |