Changeset - r24948:1a610af95c16
[Not reviewed]
master
0 1 0
Michael Lutz - 3 years ago 2021-02-24 23:29:30
michi@icosahedron.de
Change: Never auto-select an 8bpp blitter unless explicitly allowed by the 'support8bpp' setting.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/gfxinit.cpp
Show inline comments
 
@@ -263,7 +263,7 @@ static bool SwitchNewGRFBlitter()
 
	 * between multiple 32bpp blitters, which perform differently with 8bpp sprites.
 
	 */
 
	uint depth_wanted_by_base = BaseGraphics::GetUsedSet()->blitter == BLT_32BPP ? 32 : 8;
 
	uint depth_wanted_by_grf = _support8bpp != S8BPP_NONE || VideoDriver::GetInstance()->HasEfficient8Bpp() ? 8 : 32;
 
	uint depth_wanted_by_grf = _support8bpp != S8BPP_NONE ? 8 : 32;
 
	for (GRFConfig *c = _grfconfig; c != nullptr; c = c->next) {
 
		if (c->status == GCS_DISABLED || c->status == GCS_NOT_FOUND || HasBit(c->flags, GCF_INIT_ONLY)) continue;
 
		if (c->palette & GRFP_BLT_32BPP) depth_wanted_by_grf = 32;
0 comments (0 inline, 0 general)