X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftools.c;h=883a670f9993dcfa3ca8e10e0de7bc58b04a2aaa;hb=9b360b977c0c1988c9a9bd63bb6d3f3991d1a650;hp=eedf5d60284157f4aa9c79b60d0d49ff43cde1ad;hpb=cdc3c940197937b0508a1eb7dcf44874951908b7;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index eedf5d60..883a670f 100644 --- a/src/tools.c +++ b/src/tools.c @@ -425,6 +425,12 @@ void FadeToFront() BackToFront(); } +void SetMainBackgroundImageIfDefined(int graphic) +{ + if (graphic_info[graphic].bitmap) + SetMainBackgroundImage(graphic); +} + void SetMainBackgroundImage(int graphic) { SetMainBackgroundBitmap(graphic == IMG_UNDEFINED ? NULL :