Small update for the X11 server/plugin, for the luls. This update moves the x11 server from a menu and into a media decoder, allowing it to be specified in shaders and played on walls etc (muh_bad or whatever).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4025 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3da350a3ed
commit
8fa45f2c65
7 changed files with 836 additions and 359 deletions
|
@ -10,7 +10,7 @@ this is a fairly basic implementation.
|
|||
don't expect it to do much.
|
||||
You can probably get a better version from somewhere.
|
||||
*/
|
||||
int vsnprintf(char *buffer, int maxlen, char *format, va_list vargs)
|
||||
int vsnprintf(char *buffer, size_t maxlen, const char *format, va_list vargs)
|
||||
{
|
||||
int tokens=0;
|
||||
char *string;
|
||||
|
@ -316,7 +316,7 @@ Con_Printf("%i bytes left\n", maxlen);
|
|||
{*buffer++='\0';return tokens;}
|
||||
}
|
||||
|
||||
int snprintf(char *buffer, int maxlen, char *format, ...)
|
||||
int snprintf(char *buffer, size_t maxlen, const char *format, ...)
|
||||
{
|
||||
int p;
|
||||
va_list argptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue