(svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window.
This commit is contained in:
@@ -153,7 +153,7 @@ struct IConsoleWindow : Window
|
||||
IConsoleWindow(const WindowDesc *desc) : Window(desc)
|
||||
{
|
||||
_iconsole_mode = ICONSOLE_OPENED;
|
||||
SetBit(_no_scroll, SCROLL_CON); // override cursor arrows; the gamefield will not scroll
|
||||
_no_scroll++; // override cursor arrows; the gamefield will not scroll
|
||||
|
||||
this->height = _screen.height / 3;
|
||||
this->width = _screen.width;
|
||||
@@ -162,7 +162,7 @@ struct IConsoleWindow : Window
|
||||
~IConsoleWindow()
|
||||
{
|
||||
_iconsole_mode = ICONSOLE_CLOSED;
|
||||
ClrBit(_no_scroll, SCROLL_CON);
|
||||
_no_scroll--;
|
||||
}
|
||||
|
||||
virtual void OnPaint()
|
||||
|
Reference in New Issue
Block a user