From 063bb9dc4770a70df02118d268fe9438b4cce7b6 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Thu, 22 Oct 2009 02:41:09 +0000 Subject: [PATCH] Hide the mouse cursor while displaying a popup window. --- client/GUIClasses.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/GUIClasses.cpp b/client/GUIClasses.cpp index 0acbd98db..7b897bcd9 100644 --- a/client/GUIClasses.cpp +++ b/client/GUIClasses.cpp @@ -3421,6 +3421,7 @@ void CRClickPopupInt::show(SDL_Surface * to) CRClickPopupInt::CRClickPopupInt( IShowActivable *our, bool deleteInt ) { + CGI->curh->hide(); inner = our; delInner = deleteInt; } @@ -3434,6 +3435,8 @@ CRClickPopupInt::~CRClickPopupInt() if(delInner) delete inner; + + CGI->curh->show(); } @@ -4404,4 +4407,4 @@ CArtMerchantWindow::~CArtMerchantWindow(){} void CArtMerchantWindow::activate() {} void CArtMerchantWindow::deactivate() {} void CArtMerchantWindow::show(SDL_Surface * to) {} -void CArtMerchantWindow::Buy() {} \ No newline at end of file +void CArtMerchantWindow::Buy() {}