summaryrefslogtreecommitdiff
path: root/src/JSystem/J2DGraph/J2DPane.cpp
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2023-10-14 23:32:11 -0700
committerJcw87 <Jcw87@users.noreply.github.com>2023-10-14 23:36:51 -0700
commit1b57464bfae8585608fb7dcc71f40babd709944f (patch)
tree1a3603a823f24730e0ec4aa5719e0b904aa5564b /src/JSystem/J2DGraph/J2DPane.cpp
parent99b8f092680e85331740474246f964e933a7d0eb (diff)
misc cleanup
Diffstat (limited to 'src/JSystem/J2DGraph/J2DPane.cpp')
-rw-r--r--src/JSystem/J2DGraph/J2DPane.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/JSystem/J2DGraph/J2DPane.cpp b/src/JSystem/J2DGraph/J2DPane.cpp
index ccef174d..616bb196 100644
--- a/src/JSystem/J2DGraph/J2DPane.cpp
+++ b/src/JSystem/J2DGraph/J2DPane.cpp
@@ -17,7 +17,7 @@ J2DPane::J2DPane() : mPaneTree(this) {
mVisible = true;
mTag = 0;
- mBounds.set(0.f, 0.f, 0.f, 0.f);
+ mBounds.set(0.0f, 0.0f, 0.0f, 0.0f);
initiate();
}
@@ -49,7 +49,7 @@ void J2DPane::initiate() {
mBasePosition.y = 0.0f;
mRotationAxis = ROTATE_Z;
mRotation = 0.0f;
- mCullMode = 0;
+ mCullMode = GX_CULL_NONE;
mAlpha = 0xFF;
mInheritAlpha = TRUE;
mDrawAlpha = 0xFF;
@@ -146,7 +146,7 @@ bool J2DPane::insertChild(J2DPane* pPrev, J2DPane* pChild) {
}
/* 802D0078-802D054C .text draw__7J2DPaneFffPC14J2DGrafContextb */
-void J2DPane::draw(float x, float y, const J2DGrafContext* pCtx, bool clip) {
+void J2DPane::draw(f32 x, f32 y, const J2DGrafContext* pCtx, bool clip) {
J2DGrafContext ctx = *pCtx;
if (pCtx->getGrafType() != 1)
@@ -203,7 +203,7 @@ void J2DPane::draw(float x, float y, const J2DGrafContext* pCtx, bool clip) {
}
/* 802D054C-802D05C8 .text move__7J2DPaneFff */
-void J2DPane::move(float x, float y) {
+void J2DPane::move(f32 x, f32 y) {
JGeometry::TBox2<f32> bounds;
f32 width = mBounds.getWidth(), height = mBounds.getHeight();
bounds.set(x, y, x + width, y + height);