diff options
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r-- | src/graphic/graphic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index 397a37d2..812eb615 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -179,8 +179,9 @@ int get_y_offset(NODE *node) { BITMAP *load_graphic_file(char *filename) { BITMAP *temp = load_bitmap(filename, NULL); if(!temp)error(filename); + BITMAP *vbmp; #ifdef WIN32 - BITMAP *vbmp = create_video_bitmap(temp->w, temp->h); + vbmp = create_video_bitmap(temp->w, temp->h); if(!vbmp) { warning("Not enough video memory"); #endif |