From 165847d0b3a13aa4db00269481f1eba1f856d8a2 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Fri, 6 Jul 2007 02:23:20 +0000 Subject: [PATCH] Expose _retile() as PDC_retile(). This allows updating pdc_tileback to match pdc_screen after initscr(). --- sdl1/pdcscrn.c | 8 ++++---- sdl1/pdcsdl.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sdl1/pdcscrn.c b/sdl1/pdcscrn.c index a2732c69..f21f85f9 100644 --- a/sdl1/pdcscrn.c +++ b/sdl1/pdcscrn.c @@ -13,7 +13,7 @@ #include "pdcsdl.h" -RCSID("$Id: pdcscrn.c,v 1.26 2007/07/05 23:37:45 wmcbrine Exp $") +RCSID("$Id: pdcscrn.c,v 1.27 2007/07/06 02:23:20 wmcbrine Exp $") #include "deffont.h" #include "deficon.h" @@ -32,7 +32,7 @@ WINDOW *pdc_lastscr; static struct {short f, b;} atrtab[PDC_COLOR_PAIRS]; -void _retile(void) +void PDC_retile(void) { pdc_tileback = SDL_DisplayFormat(pdc_screen); @@ -170,7 +170,7 @@ int PDC_scr_open(int argc, char **argv) } if (SP->orig_attr) - _retile(); + PDC_retile(); for (i = 0; i < 8; i++) { @@ -230,7 +230,7 @@ int PDC_resize_screen(int nlines, int ncols) if (pdc_tileback) { SDL_FreeSurface(pdc_tileback); - _retile(); + PDC_retile(); } SP->resized = FALSE; diff --git a/sdl1/pdcsdl.h b/sdl1/pdcsdl.h index 2ebb6ef5..194531dc 100644 --- a/sdl1/pdcsdl.h +++ b/sdl1/pdcsdl.h @@ -11,7 +11,7 @@ * See the file maintain.er for details of the current maintainer. * ************************************************************************/ -/* $Id: pdcsdl.h,v 1.11 2007/07/05 23:37:45 wmcbrine Exp $ */ +/* $Id: pdcsdl.h,v 1.12 2007/07/06 02:23:20 wmcbrine Exp $ */ #include @@ -28,3 +28,4 @@ extern bool pdc_own_screen; extern WINDOW *pdc_lastscr; void PDC_update_rects(void); +void PDC_retile(void);