This commit is contained in:
robojumper
2025-03-15 23:20:09 +01:00
parent 8759f710e5
commit 03e3fc5cfa
8 changed files with 108 additions and 21 deletions
+2 -6
View File
@@ -35,9 +35,8 @@ void CapTexture::capture(u16 x, u16 y, bool upscale, int format) {
0, copyArg2, (mCapFlags & 8) ? true : false, (mCapFlags & 8) ? mCopyFilterArg.values : defaultFilter.values
);
// Regswap, grr
GXBool prevColorUpdate = StateGX::GXSetColorUpdate_((mCapFlags & 1) != 0);
GXBool prevAlphaUpdate = StateGX::GXSetAlphaUpdate_((mCapFlags & 2) != 0);
StateGX::ScopedColor colorUpdate((mCapFlags & 1) != 0);
StateGX::ScopedAlpha alphaUpdate((mCapFlags & 2) != 0);
GXSetZMode(true, GX_ALWAYS, (mCapFlags & 4) != 0);
GXSetCopyClear(mClearColor, field_0x20);
GXSetCopyClamp(3);
@@ -51,9 +50,6 @@ void CapTexture::capture(u16 x, u16 y, bool upscale, int format) {
if ((mCapFlags & 0x20) != 0) {
StateGX::invalidateTexAllGX();
}
StateGX::GXSetAlphaUpdate_(prevAlphaUpdate);
StateGX::GXSetColorUpdate_(prevColorUpdate);
}
} // namespace EGG
+17 -1
View File
@@ -1,3 +1,19 @@
#include "egg/gfx/eggDrawPathDOF.h"
namespace EGG {} // namespace EGG
namespace EGG {
DrawPathDOF::DrawPathDOF() {}
DrawPathDOF::~DrawPathDOF() {}
void DrawPathDOF::internalDraw() {}
void DrawPathDOF::internalResetForDraw() {}
void DrawPathDOF::SetBinaryInner(const Bin &bin) {}
void DrawPathDOF::GetBinaryInner(Bin *pBin) const {}
void DrawPathDOF::SetBinaryInner(const Bin &, const Bin &, f32) {}
} // namespace EGG