diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/msdos.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/msdos.c b/src/msdos.c index d809fffd46a..c961be34656 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -2114,6 +2114,12 @@ XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx, | |||
| 2114 | /* Just in case we got here without a mouse present... */ | 2114 | /* Just in case we got here without a mouse present... */ |
| 2115 | if (have_mouse <= 0) | 2115 | if (have_mouse <= 0) |
| 2116 | return XM_IA_SELECT; | 2116 | return XM_IA_SELECT; |
| 2117 | /* Don't allow non-positive x0 and y0, lest the menu will wrap | ||
| 2118 | around the display. */ | ||
| 2119 | if (x0 <= 0) | ||
| 2120 | x0 = 1; | ||
| 2121 | if (y0 <= 0) | ||
| 2122 | y0 = 1; | ||
| 2117 | 2123 | ||
| 2118 | state = alloca (menu->panecount * sizeof (struct IT_menu_state)); | 2124 | state = alloca (menu->panecount * sizeof (struct IT_menu_state)); |
| 2119 | screensize = screen_size * 2; | 2125 | screensize = screen_size * 2; |