Fix to reset clipping at reconnect resize

The previous fix for clipping problems was not enough, reverted
that change in xwin.c in favor for adding reset of window clipping
rect at reconnect.

Fix issue #117
This commit is contained in:
Henrik Andersson 2017-05-15 14:57:50 +02:00
parent b9481bb01b
commit 05689dbc99
2 changed files with 6 additions and 2 deletions

View File

@ -1755,12 +1755,17 @@ save_licence(unsigned char *data, int length)
void void
rd_create_ui() rd_create_ui()
{ {
/* only create a window if we dont have one intialized */
if (!ui_have_window()) if (!ui_have_window())
{ {
/* create a window if we dont have one intialized */
if (!ui_create_window()) if (!ui_create_window())
exit(EX_OSERR); exit(EX_OSERR);
} }
else
{
/* reset clipping if we already have a window */
ui_reset_clip();
}
} }
/* Create the bitmap cache directory */ /* Create the bitmap cache directory */

1
xwin.c
View File

@ -2206,7 +2206,6 @@ ui_resize_window()
g_backstore = bs; g_backstore = bs;
} }
ui_reset_clip();
} }
RD_BOOL RD_BOOL