mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
sofjit: Move common types to reg cache header.
This makes it easier to use vectors elsewhere.
This commit is contained in:
1 parent
3d5bced296
commit
96a7554053
6 files changed
+60
-65
No files matched your search
@@ -193,7 +193,7 @@ void DrawSprite(const VertexData& v0, const VertexData& v1) {
|
||||
Vec4<int> prim_color = v1.color0;
|
||||
Vec4<int> tex_color = Vec4<int>::FromRGBA(nearestFunc(s, t, texptr, texbufw, 0));
|
||||
prim_color = GetTextureFunctionOutput(prim_color, tex_color);
|
||||
drawPixel(x, y, z, 255, SOFTPIXEL_TO_VEC4I(prim_color), pixelID);
|
||||
drawPixel(x, y, z, 255, ToVec4IntArg(prim_color), pixelID);
|
||||
s += ds;
|
||||
}
|
||||
t += dt;
|
||||
@@ -237,7 +237,7 @@ void DrawSprite(const VertexData& v0, const VertexData& v1) {
|
||||
for (int y = y1; y < y2; y++) {
|
||||
for (int x = pos0.x; x < pos1.x; x++) {
|
||||
Vec4<int> prim_color = v1.color0;
|
||||
drawPixel(x, y, z, fog, SOFTPIXEL_TO_VEC4I(prim_color), pixelID);
|
||||
drawPixel(x, y, z, fog, ToVec4IntArg(prim_color), pixelID);
|
||||
}
|
||||
}
|
||||
}, pos0.y, pos1.y, MIN_LINES_PER_THREAD);
|
||||
|
||||
Reference in new issue
Block a user