(svn r23775) -Change: Hide the PCX screenshot format from the options window, if a 32bpp blitter is used.

This commit is contained in:
frosch
2012-01-08 16:58:10 +00:00
parent ed46420ca0
commit 45df862fb0
3 changed files with 17 additions and 3 deletions

View File

@@ -32,6 +32,7 @@
#include "viewport_func.h"
#include "core/geometry_func.hpp"
#include "ai/ai.hpp"
#include "blitter/factory.hpp"
#include "language.h"
@@ -260,6 +261,7 @@ struct GameOptionsWindow : Window {
list = new DropDownList();
*selected_index = _cur_screenshot_format;
for (uint i = 0; i < _num_screenshot_formats; i++) {
if (!GetScreenshotFormatSupports_32bpp(i) && BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() == 32) continue;
list->push_back(new DropDownListStringItem(SPECSTR_SCREENSHOT_START + i, i, false));
}
break;