From 92f9302c855f2f656058600d95775beaf908d1ec Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 22 Aug 2012 22:05:19 -0300 Subject: [PATCH] wddwin.c: Rename _destroy_directx_forefront_bitmap() to _destroy_directx_forefront_bitmap_extras(). Call the function only one time in gfx_directx_win_exit(). --- src/allegro/src/win/wddwin.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/allegro/src/win/wddwin.c b/src/allegro/src/win/wddwin.c index 3a7106ee3..3f8c75ed1 100644 --- a/src/allegro/src/win/wddwin.c +++ b/src/allegro/src/win/wddwin.c @@ -40,7 +40,7 @@ static void gfx_directx_win_exit(struct BITMAP *bmp); static BITMAP *gfx_directx_acknowledge_resize(void); static BITMAP *_create_directx_forefront_bitmap(int w, int h, int color_depth); -static void _destroy_directx_forefront_bitmap(void); +static void _destroy_directx_forefront_bitmap_extras(void); GFX_DRIVER gfx_directx_win = @@ -750,7 +750,7 @@ static void gfx_directx_win_exit(struct BITMAP *bmp) /* disconnect from the system driver */ win_gfx_driver = NULL; - _destroy_directx_forefront_bitmap(); + _destroy_directx_forefront_bitmap_extras(); /* release the color conversion blitter */ if (colorconv_blit) { @@ -758,8 +758,6 @@ static void gfx_directx_win_exit(struct BITMAP *bmp) colorconv_blit = NULL; } - _destroy_directx_forefront_bitmap(); - gfx_directx_exit(NULL); _exit_gfx_critical(); @@ -785,7 +783,7 @@ static BITMAP *gfx_directx_acknowledge_resize(void) /* Destroy old screen */ destroy_bitmap(gfx_directx_forefront_bitmap); - _destroy_directx_forefront_bitmap(); + _destroy_directx_forefront_bitmap_extras(); /* Re-create the screen */ new_screen = _create_directx_forefront_bitmap(w, h, color_depth); @@ -871,7 +869,7 @@ Error: -static void _destroy_directx_forefront_bitmap(void) +static void _destroy_directx_forefront_bitmap_extras(void) { /* destroy dirty lines array */ if (_al_wd_dirty_lines) {