X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.c;h=1e77ca470bac29a2fb1da646ca27480fc3ef0540;hp=a022f3944ab4858500e60a9021175b0935ae3dc7;hb=65bfe5289ae5bcb4c1ea9bee97ebc619e1ecfc16;hpb=baed6f0a85ade21358cde876c3c044c34749c434 diff --git a/src/init.c b/src/init.c index a022f394..1e77ca47 100644 --- a/src/init.c +++ b/src/init.c @@ -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