- fixed: D3DFB::Clear used the palette index even when a valid color was passed to it.

SVN r3045 (trunk)
This commit is contained in:
Christoph Oelckers 2010-12-16 00:21:13 +00:00
parent e33d1a989f
commit 7e503d2f70

View file

@ -2763,7 +2763,7 @@ void D3DFB::Clear (int left, int top, int right, int bottom, int palcolor, uint3
{
return;
}
if (palcolor >= 0)
if (palcolor >= 0 && color == 0)
{
color = GPalette.BaseColors[palcolor];
}