Skip to content

Commit

Permalink
Color math: skip divide only if no layer on main screen
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Nov 28, 2023
1 parent 66a5c94 commit b3ab5ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/snes/ppu/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,7 @@ where
return pixel;
}

let div2 = self.cgadsub & (1 << 6) != 0
&& sublayer != LAYER_BACKDROP
&& mainlayer != LAYER_BACKDROP;
let div2 = self.cgadsub & (1 << 6) != 0 && sublayer != LAYER_BACKDROP;
if self.cgadsub & (1 << 7) == 0 {
// Add mode
pixel = pixel.cm_add(&subclr, div2);
Expand Down

0 comments on commit b3ab5ee

Please sign in to comment.