From b448fb04a0ba6029d785ea6a5a1f604ea918c957 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sat, 27 Nov 2004 16:07:46 +0000 Subject: Auto detect keyboard WIN32 --- src/graphic/graphic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/graphic/graphic.cpp') 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 -- cgit v1.2.3-70-g09d2