mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-26 03:35:23 +00:00
wddwin.c: Rename _destroy_directx_forefront_bitmap() to _destroy_directx_forefront_bitmap_extras().
Call the function only one time in gfx_directx_win_exit().
This commit is contained in:
parent
1c031ee31d
commit
92f9302c85
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user