Remove unused vars from Graphics/GraphicsResources

These unused vars are:
 - Graphics::bfontmask_rect
 - Graphics::backgrounds
 - Graphics::bfontmask
 - GraphicsResources::im_bfontmask

While it seems that Graphics::backgrounds was indexed in
Graphics::drawbackground(), in reality there was never anything in that
vector and thus actually using it would cause a segfault.
This commit is contained in:
Misa
2020-07-03 02:20:07 -07:00
committed by Ethan Lee
parent adca6a122a
commit 4c6ab6e6b7
4 changed files with 0 additions and 9 deletions

View File

@@ -16,7 +16,6 @@ void Graphics::init()
setRect(tiles_rect, 0,0,8,8);
setRect(sprites_rect, 0,0,32,32);
setRect(bfont_rect, 0,0,8,8);
setRect(bfontmask_rect, 0,0,8,8);
setRect(bg_rect, 0,0,320,240);
setRect(footerrect, 0, 230, 320, 10);
setRect(prect, 0, 0, 4, 4);
@@ -2217,7 +2216,6 @@ void Graphics::drawbackground( int t )
break;
default:
FillRect(backBuffer, 0x000000 );
BlitSurfaceStandard(backgrounds[t], NULL, backBuffer, &bg_rect);
break;
}