From 1a508800c7746487ea72692956139f1061364acf Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 11 Apr 2011 17:28:32 +0200 Subject: [PATCH] Do not spawn the close button on menu dialogs if HEIGHT_DIALOGBORDER is 0 (skin file attribute). Button was shown bigger than normal rather than invisible because drawpic displays an image with its real dimension when given input size is '0 0' It's still possible to close a dialog by pressing the ESC key. --- qcsrc/menu/item/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/menu/item/dialog.c b/qcsrc/menu/item/dialog.c index 800a12681..da6a4013c 100644 --- a/qcsrc/menu/item/dialog.c +++ b/qcsrc/menu/item/dialog.c @@ -152,7 +152,7 @@ void Dialog_configureDialog(entity me) me.fill(me); - if(me.closable) + if(me.closable && me.borderLines > 0) { closebutton = me.closeButton = spawnButton(); closebutton.configureButton(closebutton, "", 0, me.closeButtonImage); -- 2.39.2