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
Package Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vlad Doc
SRB2
Commits
0d4d2ed6
Commit
0d4d2ed6
authored
3 years ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
Fix blend tables generation
parent
bcd3245b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/r_draw.c
+2
-2
2 additions, 2 deletions
src/r_draw.c
with
2 additions
and
2 deletions
src/r_draw.c
+
2
−
2
View file @
0d4d2ed6
...
...
@@ -274,7 +274,7 @@ static void BlendTab_Modulative(UINT8 *table)
static
INT32
BlendTab_Count
[
NUMBLENDMAPS
]
=
{
NUMTRANSTABLES
,
// blendtab_add
NUMTRANSTABLES
+
1
,
// blendtab_add
NUMTRANSTABLES
+
1
,
// blendtab_subtract
NUMTRANSTABLES
+
1
,
// blendtab_reversesubtract
1
// blendtab_modulate
...
...
@@ -294,7 +294,7 @@ static INT32 BlendTab_FromStyle[] =
static
void
BlendTab_GenerateMaps
(
INT32
tab
,
INT32
style
,
void
(
*
genfunc
)(
UINT8
*
,
int
,
UINT8
))
{
INT32
i
=
0
,
num
=
BlendTab_Count
[
tab
];
const
float
amtmul
=
(
256
.
0
f
/
(
float
)(
NUMTRANSTABLES
));
const
float
amtmul
=
(
256
.
0
f
/
(
float
)(
NUMTRANSTABLES
+
1
));
for
(;
i
<
num
;
i
++
)
{
const
size_t
offs
=
(
0x10000
*
i
);
...
...
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