mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Merge pull request #850 from ripesunflower/fix
Move var to begining of gfx_directx_acknowledge_resize() scope
This commit is contained in:
commit
b5e6d4af6a
@ -784,6 +784,7 @@ static BITMAP *gfx_directx_acknowledge_resize(void)
|
||||
int w, h;
|
||||
RECT rc;
|
||||
BITMAP *new_screen;
|
||||
BITMAP* tmp = NULL;
|
||||
|
||||
GetClientRect(allegro_wnd, &rc);
|
||||
w = rc.right;
|
||||
@ -792,7 +793,6 @@ static BITMAP *gfx_directx_acknowledge_resize(void)
|
||||
w -= (w % 4);
|
||||
|
||||
/* Copy current content in screen */
|
||||
BITMAP* tmp = NULL;
|
||||
if (screen)
|
||||
tmp = create_bitmap_ex(color_depth, w, h);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user