Fix rendering of built-in GOL in thumbnails

This commit is contained in:
Tamás Bálint Misius 2020-10-26 12:33:20 +01:00
parent d4814221c4
commit 1369dbc489
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -57,11 +57,13 @@ static int graphics(GRAPHICS_FUNC_ARGS)
colour1 = PIXPACK(0xFFFFFF);
}
auto ruleset = cpart->ctype;
bool renderDeco = !ren->blackDecorations;
if (ruleset >= 0 && ruleset < NGOL)
{
ruleset = builtinGol[ruleset].ruleset;
renderDeco = true;
}
if (!ren->blackDecorations)
if (renderDeco)
{
auto states = ((ruleset >> 17) & 0xF) + 2;
if (states == 2)