From: Pasi Kallinen Date: Tue, 1 Dec 2009 21:55:48 +0000 (+0000) Subject: Move the cursor after writing the banner only if cursor coords were explicitly defined. X-Git-Tag: v1.6.1-roc-dev~189 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=4b8e110006ff4d93782979da7c1c5cbe5476eed9;p=dgamelaunch Move the cursor after writing the banner only if cursor coords were explicitly defined. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@520 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgamelaunch.c b/dgamelaunch.c index 3cec1ca..31b4b70 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -1888,7 +1888,8 @@ runmenuloop(struct dg_menu *menu) clear(); } drawbanner(&ban, 1, 0); - mvprintw(menu->cursor_y, menu->cursor_x, ""); + if (menu->cursor_x >= 0 && menu->cursor_y >= 0) + mvprintw(menu->cursor_y, menu->cursor_x, ""); refresh(); userchoice = getch(); if (userchoice == ERR) return 1;