mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
In Mapster32, register the 'vidmode' OSD command in non-GL builds.
git-svn-id: https://svn.eduke32.com/eduke32@2289 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2c2adee5e9
commit
95e5d1e29d
1 changed files with 5 additions and 2 deletions
|
@ -247,6 +247,7 @@ static int32_t osdcmd_restartvid(const osdfuncparm_t *parm)
|
|||
|
||||
return OSDCMD_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int32_t osdcmd_vidmode(const osdfuncparm_t *parm)
|
||||
{
|
||||
|
@ -254,6 +255,7 @@ static int32_t osdcmd_vidmode(const osdfuncparm_t *parm)
|
|||
|
||||
switch (parm->numparms)
|
||||
{
|
||||
#ifdef USE_OPENGL
|
||||
case 1: // bpp switch
|
||||
tmp = Batol(parm->parms[0]);
|
||||
if (tmp==8 || tmp==16 || tmp==32)
|
||||
|
@ -265,6 +267,7 @@ static int32_t osdcmd_vidmode(const osdfuncparm_t *parm)
|
|||
tmp = Batol(parm->parms[2]);
|
||||
if (tmp==8 || tmp==16 || tmp==32)
|
||||
newbpp = tmp;
|
||||
#endif
|
||||
case 2: // res switch
|
||||
newx = Batol(parm->parms[0]);
|
||||
newy = Batol(parm->parms[1]);
|
||||
|
@ -298,7 +301,6 @@ static int32_t osdcmd_vidmode(const osdfuncparm_t *parm)
|
|||
|
||||
return OSDCMD_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef M32_SHOWDEBUG
|
||||
|
@ -451,8 +453,9 @@ int32_t app_main(int32_t argc, const char **argv)
|
|||
#ifdef USE_OPENGL
|
||||
OSD_RegisterFunction("restartvid","restartvid: reinitialize the video mode",osdcmd_restartvid);
|
||||
OSD_RegisterFunction("vidmode","vidmode <xdim> <ydim> <bpp> <fullscreen>: immediately change the video mode",osdcmd_vidmode);
|
||||
#else
|
||||
OSD_RegisterFunction("vidmode","vidmode <xdim> <ydim>: immediately change the video mode",osdcmd_vidmode);
|
||||
#endif
|
||||
|
||||
wm_setapptitle("Mapster32");
|
||||
|
||||
editstatus = 1;
|
||||
|
|
Loading…
Reference in a new issue