added overlay touch buttons for in-game "stop" and "pause" buttons
[rocksndiamonds.git] / src / init.c
index a022f3944ab4858500e60a9021175b0935ae3dc7..a820bf62d8d381f273a4df6f3468c8f6a06a6bc8 100644 (file)
@@ -275,6 +275,15 @@ 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,
+    IMG_GFX_GAME_BUTTON_TOUCH_STOP,
+    IMG_GFX_GAME_BUTTON_TOUCH_PAUSE,
+    -1
+  };
   int i, j, k;
 
   FreeAllImageTextures();
@@ -300,6 +309,9 @@ void InitImageTextures(void)
       }
     }
   }
+
+  for (i = 0; texture_graphics[i] > -1; i++)
+    CreateImageTextures(texture_graphics[i]);
 }
 
 #if 1