fixed black rectangle appearing at top-left of screen...
...when dialogs are displayed (CVS internal)
This commit is contained in:
parent
23d7f784ea
commit
fc36818917
1 changed files with 4 additions and 1 deletions
|
@ -69,7 +69,7 @@ void textbox::draw_cursor(int pos) const
|
|||
|
||||
void textbox::draw() const
|
||||
{
|
||||
if(location().h == 0)
|
||||
if(location().x == 0)
|
||||
return;
|
||||
|
||||
if(buffer_.get() != NULL) {
|
||||
|
@ -113,6 +113,9 @@ void textbox::draw() const
|
|||
|
||||
void textbox::handle_event(const SDL_Event& event)
|
||||
{
|
||||
if(location().x == 0)
|
||||
return;
|
||||
|
||||
int mousex, mousey;
|
||||
SDL_GetMouseState(&mousex,&mousey);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue