added overlay touch buttons for door request dialog
[rocksndiamonds.git] / src / init.c
index a022f3944ab4858500e60a9021175b0935ae3dc7..1e77ca470bac29a2fb1da646ca27480fc3ef0540 100644 (file)
@@ -275,6 +275,13 @@ static void InitBitmapPointers(void)
 
 void InitImageTextures(void)
 {
+  static int texture_graphics[] =
+  {
+    IMG_GFX_REQUEST_BUTTON_TOUCH_YES,
+    IMG_GFX_REQUEST_BUTTON_TOUCH_NO,
+    IMG_GFX_REQUEST_BUTTON_TOUCH_CONFIRM,
+    -1
+  };
   int i, j, k;
 
   FreeAllImageTextures();
@@ -300,6 +307,9 @@ void InitImageTextures(void)
       }
     }
   }
+
+  for (i = 0; texture_graphics[i] > -1; i++)
+    CreateImageTextures(texture_graphics[i]);
 }
 
 #if 1