Skip to content
Snippets Groups Projects
Commit 22fa1073 authored by deuce's avatar deuce
Browse files

Create the sdl_font bitmap to be large enough to hold the entire scaled font.

PR:53->closed
parent ec029506
No related branches found
No related tags found
No related merge requests found
...@@ -1071,7 +1071,7 @@ int sdl_load_font(char *filename) ...@@ -1071,7 +1071,7 @@ int sdl_load_font(char *filename)
if(sdl_font!=NULL) if(sdl_font!=NULL)
sdl.FreeSurface(sdl_font); sdl.FreeSurface(sdl_font);
sdl_font=sdl.CreateRGBSurface(SDL_SWSURFACE, vstat.charwidth, vstat.charheight*256, 8, 0, 0, 0, 0); sdl_font=sdl.CreateRGBSurface(SDL_SWSURFACE, vstat.charwidth*vstat.scaling, vstat.charheight*256*vstat.scaling, 8, 0, 0, 0, 0);
if(sdl_font == NULL) { if(sdl_font == NULL) {
sdl.mutexV(sdl_vstatlock); sdl.mutexV(sdl_vstatlock);
free(font); free(font);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment