Skip to content

Commit

Permalink
Let's try overriding the source color key
Browse files Browse the repository at this point in the history
  • Loading branch information
periwinkle9 committed Jul 19, 2023
1 parent a08b762 commit 7882575
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ class Roach
{
RECT rcSet = {x, y, x + 72, y + 72};
RECT rcWork = rect[ani_no];
backbuffer->Blt(&rcSet, surf, &rcWork, DDBLT_KEYSRC | DDBLT_WAIT, NULL);

// Let's try overriding the color key?
DDBLTFX bltfx;
memset(&bltfx, 0, sizeof bltfx); // Also sets color key to 0x00000000
bltfx.dwSize = sizeof bltfx;
backbuffer->Blt(&rcSet, surf, &rcWork, DDBLT_KEYSRCOVERRIDE | DDBLT_WAIT, &bltfx);
}
};

Expand Down

0 comments on commit 7882575

Please sign in to comment.