Added get_path to m_native.
Fixed drawtextfield being affected by the previous draw* call colors git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5347 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f464d0fef3
commit
8f664f2b2e
4 changed files with 11 additions and 2 deletions
|
@ -139,6 +139,7 @@ typedef struct {
|
|||
char *(*fgets) (struct vfsfile_s *fhandle, char *out, size_t outsize); //returns output buffer, or NULL
|
||||
void (*fprintf) (struct vfsfile_s *fhandle, const char *s, ...);
|
||||
void (*enumeratefiles) (const char *match, int (QDECL *callback)(const char *fname, qofs_t fsize, time_t mtime, void *ctx, struct searchpathfuncs_s *package), void *ctx);
|
||||
char *(*path_get) (void);
|
||||
|
||||
// Drawing stuff
|
||||
void (*drawsetcliparea) (float x, float y, float width, float height);
|
||||
|
|
|
@ -72,6 +72,10 @@ static void MN_fclose(vfsfile_t *f)
|
|||
{
|
||||
VFS_CLOSE(f);
|
||||
}
|
||||
static const char *MN_path_get(void)
|
||||
{
|
||||
return host_parms.binarydir;
|
||||
}
|
||||
static shader_t *MN_CachePic(const char *picname)
|
||||
{
|
||||
return R2D_SafeCachePic(picname);
|
||||
|
@ -341,6 +345,7 @@ qboolean MN_Init(void)
|
|||
VFS_GETS,
|
||||
VFS_PRINTF,
|
||||
COM_EnumerateFiles,
|
||||
MN_path_get,
|
||||
|
||||
// Drawing stuff
|
||||
MN_DrawSetClipArea,
|
||||
|
@ -401,7 +406,7 @@ qboolean MN_Init(void)
|
|||
break;
|
||||
|
||||
if (host_parms.binarydir && !strchr(gamepath, '/') && !strchr(gamepath, '\\'))
|
||||
libmenu = Sys_LoadLibrary(va("%smenu_%s_"ARCH_CPU_POSTFIX ARCH_DL_POSTFIX, host_parms.binarydir, gamepath), funcs);
|
||||
libmenu = Sys_LoadLibrary(va("%smenu_"ARCH_CPU_POSTFIX ARCH_DL_POSTFIX, host_parms.binarydir), funcs);
|
||||
if (libmenu)
|
||||
break;
|
||||
|
||||
|
|
|
@ -427,6 +427,9 @@ void QCBUILTIN PF_CL_DrawTextField (pubprogfuncs_t *prinst, struct globalvars_s
|
|||
}
|
||||
font = PR_CL_ChooseFont(world->g.drawfont, scale[0], scale[1]);
|
||||
|
||||
// Oversight ~eukara
|
||||
R2D_ImageColours(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
|
||||
R_DrawTextField(pos[0], pos[1], size[0], size[1], text, CON_WHITEMASK, flags, font, scale);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
// All my fault -eukara
|
||||
#define ENGINE_ROUTING
|
||||
#define USE_INTERNAL_BULLET
|
||||
#undef USE_INTERNAL_BULLET
|
||||
#define MENU_NATIVECODE // Will make a debut eventually, hopefully
|
||||
|
||||
// What do we use
|
||||
|
|
Loading…
Reference in a new issue