diff --git a/engine/client/console.c b/engine/client/console.c index 5c3a0c16c..61b11094b 100644 --- a/engine/client/console.c +++ b/engine/client/console.c @@ -2060,6 +2060,7 @@ void Con_DrawConsole (int lines, qboolean noback) shader = w->backshader = R_RegisterPic(w->backimage);// R_RegisterCustom(w->backimage, SUF_NONE, Shader_DefaultCinematic, w->backimage); if (shader) { +#ifndef NOMEDIA cin_t *cin = R_ShaderGetCinematic(shader); if (cin) { @@ -2070,6 +2071,7 @@ void Con_DrawConsole (int lines, qboolean noback) else Media_Send_Command(cin, "cmd:unfocus"); } +#endif R2D_ImageColours(1, 1, 1, 1); R2D_Image(w->wnd_x+8, w->wnd_y+8, w->wnd_w-16, w->wnd_h-16, 0, 0, 1, 1, shader); } diff --git a/engine/client/keys.c b/engine/client/keys.c index 8a1c1898d..8420b1a05 100644 --- a/engine/client/keys.c +++ b/engine/client/keys.c @@ -984,12 +984,14 @@ void Key_ConsoleRelease(console_t *con, int key, int unicode) // if (con->buttonsdown == CB_MOVE) //window title(move) con->buttonsdown = CB_NONE; +#ifndef NOMEDIA if (con->backshader) { cin_t *cin = R_ShaderGetCinematic(con->backshader); if (cin) Media_Send_KeyEvent(cin, key, unicode, 1); } +#endif } //if the referenced (trailing) chevron is doubled up, then it doesn't act as part of any markup and should be ignored for such things. static qboolean utf_specialchevron(unsigned char *start, unsigned char *chev) @@ -1370,12 +1372,14 @@ qboolean Key_Console (console_t *con, unsigned int unicode, int key) //console does not have any way to accept input, so don't try giving it any. if (!con->linebuffered) { +#ifndef NOMEDIA if (con->backshader) { cin_t *cin = R_ShaderGetCinematic(con->backshader); if (cin) Media_Send_KeyEvent(cin, key, unicode, 0); } +#endif return false; }