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
b7a216c7
Commit
b7a216c7
authored
6 years ago
by
Marco Z
Browse files
Options
Downloads
Patches
Plain Diff
Add COLORMAPREVERSELIST ifdef to toggle Newest -> Oldest extra_colormaps order
parent
43ae25c4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/r_data.c
+9
-0
9 additions, 0 deletions
src/r_data.c
src/r_data.h
+3
-0
3 additions, 0 deletions
src/r_data.h
with
12 additions
and
0 deletions
src/r_data.c
+
9
−
0
View file @
b7a216c7
...
...
@@ -1359,7 +1359,9 @@ void R_ClearColormaps(void)
//
void
R_AddColormapToList
(
extracolormap_t
*
extra_colormap
)
{
#ifndef COLORMAPREVERSELIST
extracolormap_t
*
exc
;
#endif
if
(
!
extra_colormaps
)
{
...
...
@@ -1369,11 +1371,18 @@ void R_AddColormapToList(extracolormap_t *extra_colormap)
return
;
}
#ifdef COLORMAPREVERSELIST
extra_colormaps
->
prev
=
extra_colormap
;
extra_colormap
->
next
=
extra_colormaps
;
extra_colormaps
=
extra_colormap
;
extra_colormap
->
prev
=
0
;
#else
for
(
exc
=
extra_colormaps
;
exc
->
next
;
exc
=
exc
->
next
);
exc
->
next
=
extra_colormap
;
extra_colormap
->
prev
=
exc
;
extra_colormap
->
next
=
0
;
#endif
}
#ifdef EXTRACOLORMAPLUMPS
...
...
This diff is collapsed.
Click to expand it.
src/r_data.h
+
3
−
0
View file @
b7a216c7
...
...
@@ -100,6 +100,9 @@ INT32 R_CheckTextureNumForName(const char *name);
// Uncomment to enable
//#define EXTRACOLORMAPLUMPS
// Uncomment to make extra_colormaps order Newest -> Oldest
//#define COLORMAPREVERSELIST
void
R_ReInitColormaps
(
UINT16
num
);
void
R_ClearColormaps
(
void
);
void
R_AddColormapToList
(
extracolormap_t
*
extra_colormap
);
...
...
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