Skip to content

Commit

Permalink
Handle old pdc_tileback here, so that this function can be called by
Browse files Browse the repository at this point in the history
users.
  • Loading branch information
wmcbrine committed Jul 11, 2007
1 parent 0660f2b commit a321b48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdl1/pdcscrn.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "pdcsdl.h"

RCSID("$Id: pdcscrn.c,v 1.31 2007/07/09 06:24:42 wmcbrine Exp $")
RCSID("$Id: pdcscrn.c,v 1.32 2007/07/11 21:01:09 wmcbrine Exp $")

#include <stdlib.h>
#include "deffont.h"
Expand All @@ -34,6 +34,9 @@ static struct {short f, b;} atrtab[PDC_COLOR_PAIRS];

void PDC_retile(void)
{
if (pdc_tileback)
SDL_FreeSurface(pdc_tileback);

pdc_tileback = SDL_DisplayFormat(pdc_screen);

if (pdc_back)
Expand Down Expand Up @@ -232,10 +235,7 @@ int PDC_resize_screen(int nlines, int ncols)
SDL_SWSURFACE|SDL_ANYFORMAT|SDL_RESIZABLE);

if (pdc_tileback)
{
SDL_FreeSurface(pdc_tileback);
PDC_retile();
}

SP->resized = FALSE;
SP->cursrow = SP->curscol = 0;
Expand Down

0 comments on commit a321b48

Please sign in to comment.