X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=6b1c61cf6c7ca89e231a1a18309b98dc11ac12a9;hp=2970cfa911c0e6b5dcbe6a6eafb4ec1497993063;hb=04575ef0d5f1551715fca1d1def889fd63b5c3ad;hpb=37d67ecd5de70639fa2818501f17fea5b49a3d6a diff --git a/src/tools.c b/src/tools.c index 2970cfa9..6b1c61cf 100644 --- a/src/tools.c +++ b/src/tools.c @@ -600,6 +600,20 @@ void SetMainBackgroundImageIfDefined(int graphic) SetMainBackgroundBitmap(graphic_info[graphic].bitmap); } +void SetDoorBackgroundImageIfDefined(int graphic) +{ + if (graphic_info[graphic].bitmap) + SetDoorBackgroundBitmap(graphic_info[graphic].bitmap); +} + +void SetWindowBackgroundImage(int graphic) +{ + SetWindowBackgroundBitmap(graphic == IMG_UNDEFINED ? NULL : + graphic_info[graphic].bitmap ? + graphic_info[graphic].bitmap : + graphic_info[IMG_BACKGROUND].bitmap); +} + void SetMainBackgroundImage(int graphic) { SetMainBackgroundBitmap(graphic == IMG_UNDEFINED ? NULL :