mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-25 01:12:09 -04:00
J2DGrafContext match
This commit is contained in:
+3
-3
@@ -836,7 +836,7 @@ config.libs = [
|
||||
JSystemLib(
|
||||
"J2DGraph",
|
||||
[
|
||||
Object(NonMatching, "JSystem/J2DGraph/J2DGrafContext.cpp"),
|
||||
Object(Matching, "JSystem/J2DGraph/J2DGrafContext.cpp"),
|
||||
Object(Matching, "JSystem/J2DGraph/J2DOrthoGraph.cpp"),
|
||||
Object(NonMatching, "JSystem/J2DGraph/J2DPrint.cpp"),
|
||||
Object(NonMatching, "JSystem/J2DGraph/J2DPane.cpp"),
|
||||
@@ -1262,7 +1262,7 @@ config.libs = [
|
||||
ActorRel(NonMatching, "d_a_obj_doguu_demo"),
|
||||
ActorRel(NonMatching, "d_a_obj_gryw00"),
|
||||
ActorRel(NonMatching, "d_a_obj_hfuck1"),
|
||||
ActorRel(Matching, "d_a_obj_hole", extra_cflags=["-sym off"]),
|
||||
ActorRel(Matching, "d_a_obj_hole", extra_cflags=["-sym off"]),
|
||||
ActorRel(NonMatching, "d_a_obj_ice"),
|
||||
ActorRel(NonMatching, "d_a_obj_ikada"),
|
||||
ActorRel(NonMatching, "d_a_obj_kanat"),
|
||||
@@ -1370,7 +1370,7 @@ config.libs = [
|
||||
ActorRel(NonMatching, "d_a_oq"),
|
||||
ActorRel(NonMatching, "d_a_pedestal"),
|
||||
ActorRel(NonMatching, "d_a_saku"),
|
||||
ActorRel(Matching, "d_a_seatag"),
|
||||
ActorRel(Matching, "d_a_seatag"),
|
||||
ActorRel(NonMatching, "d_a_shand"),
|
||||
ActorRel(NonMatching, "d_a_ship"),
|
||||
ActorRel(NonMatching, "d_a_shop_item"),
|
||||
|
||||
@@ -19,9 +19,7 @@ J2DGrafContext::J2DGrafContext(f32 x, f32 y, f32 width, f32 height)
|
||||
void J2DGrafContext::setPort() {
|
||||
setScissor();
|
||||
setup2D();
|
||||
|
||||
JGeometry::TBox2<f32> bounds(mBounds);
|
||||
GXSetViewport(bounds.i.x, bounds.i.y, bounds.getWidth(), bounds.getHeight(), 0.0f, 1.875f);
|
||||
GXSetViewport(mBounds.i.x, mBounds.i.y, mBounds.getWidth(), mBounds.getHeight(), 0.0f, 1.0f);
|
||||
}
|
||||
|
||||
static inline void GXSetTexCoordGen(GXTexCoordID dst, GXTexGenType type, GXTexGenSrc src, u32 mtx) {
|
||||
|
||||
@@ -168,11 +168,11 @@ void J2DPane::draw(float x, float y, const J2DGrafContext* pCtx, bool clip) {
|
||||
if (clip) {
|
||||
mDrawBounds.addPos(pParentPane->mScreenBounds.i.x, pParentPane->mScreenBounds.i.y);
|
||||
mDrawBounds.intersect(pParentPane->mDrawBounds);
|
||||
mDrawAlpha = mAlpha;
|
||||
|
||||
if (mInheritAlpha)
|
||||
mDrawAlpha = (mAlpha * pParentPane->mDrawAlpha) / 0xFF;
|
||||
}
|
||||
|
||||
mDrawAlpha = mAlpha;
|
||||
if (mInheritAlpha)
|
||||
mDrawAlpha = (mAlpha * pParentPane->mDrawAlpha) / 0xFF;
|
||||
} else {
|
||||
mScreenBounds.addPos(x, y);
|
||||
makeMatrix(mBounds.i.x + x, mBounds.i.y + y);
|
||||
|
||||
@@ -179,7 +179,7 @@ J2DPane * J2DScreen::search(u32 tag) {
|
||||
/* 802D1180-802D12E0 .text drawSelf__9J2DScreenFffPA3_A4_f */
|
||||
void J2DScreen::drawSelf(f32 x, f32 y, Mtx* pMtx) {
|
||||
GXColor color = mColor;
|
||||
u8 alpha = ((mColor.a * mAlpha) / 0xFF);
|
||||
u8 alpha = ((color.a * mAlpha) / 0xFF);
|
||||
if (alpha == 0)
|
||||
return;
|
||||
color.a = alpha;
|
||||
|
||||
Reference in New Issue
Block a user