Skip to content

Commit

Permalink
Added the missing Sys_SetConWindowCmdLine to the Mac, Unix and SDL va…
Browse files Browse the repository at this point in the history
…riants of sys_window.
  • Loading branch information
danij committed Jun 26, 2008
1 parent dd3cb91 commit 9b0b8fb
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
25 changes: 25 additions & 0 deletions doomsday/engine/mac/src/sys_window.c
Expand Up @@ -195,6 +195,31 @@ void Sys_ConPrint(uint idx, const char *text, int clflags)
sysSetConWindowCmdLine(1, NULL, 0, 0);
}

/**
* Set the command line display of the specified console window.
*
* @param idx Console window identifier.
* @param text Text string to copy.
* @param cursorPos Position to set the cursor on the command line.
* @param flags CLF_* flags control the appearance of the
* command line.
*/
void Sys_SetConWindowCmdLine(uint idx, const char *text, uint cursorPos,
int flags)
{
ddwindow_t *win;

if(!winManagerInited)
return;

win = getWindow(idx - 1);

if(!win || win->type != WT_CONSOLE)
return;

setConWindowCmdLine(win, text, cursorPos, flags);
}

static void Sys_SetConWindowCmdLine(uint idx, const char *text,
unsigned int cursorPos, int flags)
{
Expand Down
25 changes: 25 additions & 0 deletions doomsday/engine/portable/src/sys_sdl_window.c
Expand Up @@ -196,6 +196,31 @@ void Sys_ConPrint(uint idx, const char *text, int clflags)
setConWindowCmdLine(1, NULL, 0, 0);
}

/**
* Set the command line display of the specified console window.
*
* @param idx Console window identifier.
* @param text Text string to copy.
* @param cursorPos Position to set the cursor on the command line.
* @param flags CLF_* flags control the appearance of the
* command line.
*/
void Sys_SetConWindowCmdLine(uint idx, const char *text, uint cursorPos,
int flags)
{
ddwindow_t *win;

if(!winManagerInited)
return;

win = getWindow(idx - 1);

if(!win || win->type != WT_CONSOLE)
return;

setConWindowCmdLine(win, text, cursorPos, flags);
}

static void setConWindowCmdLine(uint idx, const char *text,
unsigned int cursorPos, int flags)
{
Expand Down
25 changes: 25 additions & 0 deletions doomsday/engine/unix/src/sys_window.c
Expand Up @@ -200,6 +200,31 @@ void Sys_ConPrint(uint idx, const char *text, int clflags)
setConWindowCmdLine(1, NULL, 0, 0);
}

/**
* Set the command line display of the specified console window.
*
* @param idx Console window identifier.
* @param text Text string to copy.
* @param cursorPos Position to set the cursor on the command line.
* @param flags CLF_* flags control the appearance of the
* command line.
*/
void Sys_SetConWindowCmdLine(uint idx, const char *text, uint cursorPos,
int flags)
{
ddwindow_t *win;

if(!winManagerInited)
return;

win = getWindow(idx - 1);

if(!win || win->type != WT_CONSOLE)
return;

setConWindowCmdLine(win, text, cursorPos, flags);
}

static void setConWindowCmdLine(uint idx, const char *text,
unsigned int cursorPos, int flags)
{
Expand Down

0 comments on commit 9b0b8fb

Please sign in to comment.