From 4b8e110006ff4d93782979da7c1c5cbe5476eed9 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 1 Dec 2009 21:55:48 +0000 Subject: [PATCH] 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 --- dgamelaunch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.3