Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
6f4dadaa
Commit
6f4dadaa
authored
5 years ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
menu changes
parent
02e327a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!734
Rebase Keycodes only branch.
,
!550
Renderer switching
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/m_menu.c
+13
-3
13 additions, 3 deletions
src/m_menu.c
with
13 additions
and
3 deletions
src/m_menu.c
+
13
−
3
View file @
6f4dadaa
...
...
@@ -257,6 +257,7 @@ static void M_ChangeControl(INT32 choice);
// Video & Sound
menu_t
OP_VideoOptionsDef
,
OP_VideoModeDef
;
#ifdef HWRENDER
static
void
M_OpenGLOptionsMenu
(
void
);
menu_t
OP_OpenGLOptionsDef
,
OP_OpenGLFogDef
,
OP_OpenGLColorDef
;
#endif
menu_t
OP_SoundOptionsDef
;
...
...
@@ -1100,10 +1101,7 @@ static menuitem_t OP_VideoOptionsMenu[] =
{
{
IT_STRING
|
IT_CALL
,
NULL
,
"Video Modes..."
,
M_VideoModeMenu
,
10
},
#ifdef HWRENDER
{
IT_STRING
|
IT_CVAR
,
NULL
,
"Renderer"
,
&
cv_renderer
,
20
},
//{IT_SUBMENU|IT_STRING, NULL, "3D Card Options...", &OP_OpenGLOptionsDef, 20},
#endif
#if (defined (__unix__) && !defined (MSDOS)) || defined (UNIXCOMMON) || defined (HAVE_SDL)
{
IT_STRING
|
IT_CVAR
,
NULL
,
"Fullscreen"
,
&
cv_fullscreen
,
30
},
...
...
@@ -1119,6 +1117,10 @@ static menuitem_t OP_VideoOptionsMenu[] =
{
IT_STRING
|
IT_CVAR
,
NULL
,
"Show FPS"
,
&
cv_ticrate
,
110
},
{
IT_STRING
|
IT_CVAR
,
NULL
,
"Clear Before Redraw"
,
&
cv_homremoval
,
120
},
{
IT_STRING
|
IT_CVAR
,
NULL
,
"Vertical Sync"
,
&
cv_vidwait
,
130
},
#ifdef HWRENDER
{
IT_STRING
|
IT_CALL
,
NULL
,
"3D Card Options..."
,
M_OpenGLOptionsMenu
,
150
},
#endif
};
static
menuitem_t
OP_VideoModeMenu
[]
=
...
...
@@ -1712,6 +1714,14 @@ menu_t OP_MonitorToggleDef =
};
#ifdef HWRENDER
static
void
M_OpenGLOptionsMenu
(
void
)
{
if
(
rendermode
==
render_opengl
)
M_SetupNextMenu
(
&
OP_OpenGLOptionsDef
);
else
M_StartMessage
(
M_GetText
(
"You must be in OpenGL mode
\n
to access this menu.
\n\n
(Press a key)
\n
"
),
NULL
,
MM_NOTHING
);
}
menu_t
OP_OpenGLOptionsDef
=
DEFAULTMENUSTYLE
(
"M_VIDEO"
,
OP_OpenGLOptionsMenu
,
&
OP_VideoOptionsDef
,
30
,
30
);
#ifdef ALAM_LIGHTING
menu_t
OP_OpenGLLightingDef
=
DEFAULTMENUSTYLE
(
"M_VIDEO"
,
OP_OpenGLLightingMenu
,
&
OP_OpenGLOptionsDef
,
60
,
40
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment