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
Merge requests
!826
Fix HWR_DrawFlippedColumnInCache ignoring chroma key TF
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix HWR_DrawFlippedColumnInCache ignoring chroma key TF
hwrflipcolchromakey
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Lactozilla
requested to merge
hwrflipcolchromakey
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
2
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
7f32a532
1 commit,
5 years ago
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/hardware/hw_cache.c
+
4
−
4
Options
@@ -234,11 +234,11 @@ static void HWR_DrawFlippedColumnInCache(const column_t *patchcol, UINT8 *block,
if
(
mipmap
->
colormap
)
texel
=
mipmap
->
colormap
[
texel
];
// transparent pixel
if
(
texel
==
HWR_PATCHES_CHROMAKEY_COLORINDEX
)
// If the mipmap is chromakeyed, check if the texel's color
// is equivalent to the chroma key's color index.
alpha
=
0xff
;
if
((
mipmap
->
flags
&
TF_CHROMAKEYED
)
&&
(
texel
==
HWR_PATCHES_CHROMAKEY_COLORINDEX
))
alpha
=
0x00
;
else
alpha
=
0xff
;
// hope compiler will get this switch out of the loops (dreams...)
// gcc do it ! but vcc not ! (why don't use cygwin gcc for win32 ?)
Loading