- Fixed: Memory error when loading BMF palettes.
- Fixed: When locating WhiteIndex and BlackIndex in the palette index 0 was skipped. - Fixed: When filling an area black for vid_fps or pillarbox/letterbox use GPalette.BlackIndex instead of assuming palette index 0 is black. SVN r3807 (trunk)
This commit is contained in:
parent
4ac8f5eae4
commit
cb413c600e
4 changed files with 9 additions and 9 deletions
|
|
@ -837,10 +837,10 @@ void DCanvas::FillBorder (FTexture *img)
|
|||
}
|
||||
else
|
||||
{
|
||||
Clear (0, 0, Width, bordtop, 0, 0); // Top
|
||||
Clear (0, bordtop, bordleft, Height - bordbottom, 0, 0); // Left
|
||||
Clear (Width - bordright, bordtop, Width, Height - bordbottom, 0, 0); // Right
|
||||
Clear (0, Height - bordbottom, Width, Height, 0, 0); // Bottom
|
||||
Clear (0, 0, Width, bordtop, GPalette.BlackIndex, 0); // Top
|
||||
Clear (0, bordtop, bordleft, Height - bordbottom, GPalette.BlackIndex, 0); // Left
|
||||
Clear (Width - bordright, bordtop, Width, Height - bordbottom, GPalette.BlackIndex, 0); // Right
|
||||
Clear (0, Height - bordbottom, Width, Height, GPalette.BlackIndex, 0); // Bottom
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue