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
2d3f45de
Commit
2d3f45de
authored
5 years ago
by
Lactozilla
Browse files
Options
Downloads
Plain Diff
Merge branch 'renderswitch' of
https://git.magicalgirl.moe/STJr/SRB2
into renderswitch
parents
eca5be52
76a1a80d
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/command.c
+9
-8
9 additions, 8 deletions
src/command.c
src/screen.c
+1
-1
1 addition, 1 deletion
src/screen.c
with
10 additions
and
9 deletions
src/command.c
+
9
−
8
View file @
2d3f45de
...
...
@@ -106,7 +106,7 @@ static vsbuf_t com_text; // variable sized buffer
*
* \param s The text.
* \param np Optionally a pointer to fill with the new string length.
* \return The
new length
.
* \return The
text
.
* \sa COM_ExecuteString
*/
static
char
*
...
...
@@ -427,16 +427,17 @@ static void COM_TokenizeString(char *ptext)
com_argc
=
0
;
com_args
=
NULL
;
com_flags
=
0
;
while
(
com_argc
<
MAX_ARGS
)
if
(
ptext
[
0
]
==
'\033'
)
{
if
(
ptext
[
0
]
==
'\033'
)
{
com_flags
=
(
unsigned
)
ptext
[
1
];
ptext
+=
2
;
}
com_flags
=
(
unsigned
)
ptext
[
1
];
ptext
+=
2
;
}
else
com_flags
=
0
;
while
(
com_argc
<
MAX_ARGS
)
{
// Skip whitespace up to a newline.
while
(
*
ptext
!=
'\0'
&&
*
ptext
<=
' '
&&
*
ptext
!=
'\n'
)
ptext
++
;
...
...
This diff is collapsed.
Click to expand it.
src/screen.c
+
1
−
1
View file @
2d3f45de
...
...
@@ -65,7 +65,7 @@ consvar_t cv_renderview = {"renderview", "On", 0, CV_OnOff, NULL, 0, NULL, NULL,
static
void
SCR_ActuallyChangeRenderer
(
void
);
static
CV_PossibleValue_t
cv_renderer_t
[]
=
{{
1
,
"Software"
},
{
2
,
"OpenGL"
},
{
0
,
NULL
}};
consvar_t
cv_renderer
=
{
"renderer"
,
"Software"
,
CV_NOLUA
|
CV_CALL
,
cv_renderer_t
,
SCR_ChangeRenderer
,
0
,
NULL
,
NULL
,
0
,
0
,
NULL
};
consvar_t
cv_renderer
=
{
"renderer"
,
"Software"
,
CV_SAVE
|
CV_NOLUA
|
CV_CALL
,
cv_renderer_t
,
SCR_ChangeRenderer
,
0
,
NULL
,
NULL
,
0
,
0
,
NULL
};
static
void
SCR_ChangeFullscreen
(
void
);
...
...
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