Skip to content

Commit

Permalink
Merge branch 'master' into TemporaryHackishBranch
Browse files Browse the repository at this point in the history
# Conflicts:
#	GPU/Software/Rasterizer.cpp
  • Loading branch information
LunaMoo committed Oct 27, 2019
2 parents 4aa0b81 + b4438c5 commit 2a0a64e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ build.ios
versionname.txt
versioncode.txt
build*/
android/.cxx

# Temp file used by jenkins windows build (TODO: remove)
desc.txt
Expand Down
4 changes: 2 additions & 2 deletions GPU/Software/Rasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1291,13 +1291,13 @@ void DrawTriangleSlice(
inline void DrawSinglePixel5551(u16 *pixel, const Vec4<int> &color_in) {
u32 new_color;
if (color_in.a() == 255) {
new_color = color_in.ToRGBA() & 0xFFFFFF;
} else {
const u32 old_color = RGBA5551ToRGBA8888(*pixel);
const Vec4<int> dst = Vec4<int>::FromRGBA(old_color);
Vec3<int> blended = AlphaBlendingResult(color_in, dst);
// ToRGB() always automatically clamps.
new_color = blended.ToRGB();
} else {
new_color = color_in.ToRGBA() & 0xFFFFFF;
}

new_color |= (*pixel & 0x8000) ? 0xff000000 : 0x00000000;
Expand Down
2 changes: 1 addition & 1 deletion assets/lang

0 comments on commit 2a0a64e

Please sign in to comment.