]> skyeroc.xyz Git - dgamelaunch/commitdiff
Move the cursor after writing the banner only if cursor coords were explicitly defined.
authorPasi Kallinen <paxed@alt.org>
Tue, 1 Dec 2009 21:55:48 +0000 (21:55 +0000)
committerPasi Kallinen <paxed@alt.org>
Tue, 1 Dec 2009 21:55:48 +0000 (21:55 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@520 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index 3cec1caddb4fd4af3894a93de4a4c16ae91502e7..31b4b70381da8dba9cfe5d2394ececd25df54d49 100644 (file)
@@ -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;