Remove duplicate graphics.Makebfont() in main()

This call to Makebfont() always existed, but ever since 2.3's per-level
custom assets were added, graphics.reloadresources() also calls
graphics.Makebfont(), meaning this call is unnecessary. Calling it twice
results in graphics.bfont and graphics.flipbfont having twice the number
of elements, until custom assets get mounted (or unmounted, technically).
This commit is contained in:
Misa 2021-01-13 22:35:41 -08:00 committed by Ethan Lee
parent adbab6355b
commit afba320083
1 changed files with 0 additions and 2 deletions

View File

@ -265,8 +265,6 @@ int main(int argc, char *argv[])
SDL_SetSurfaceBlendMode(graphics.ghostbuffer, SDL_BLENDMODE_BLEND);
SDL_SetSurfaceAlphaMod(graphics.ghostbuffer, 127);
graphics.Makebfont();
graphics.foregroundBuffer = CREATE_SURFACE(320, 240);
SDL_SetSurfaceBlendMode(graphics.foregroundBuffer, SDL_BLENDMODE_BLEND);