summaryrefslogtreecommitdiff
path: root/src/d/d_drawlist.cpp
diff options
context:
space:
mode:
authorMax Roncace <me@caseif.net>2025-08-11 02:22:28 -0400
committerGitHub <noreply@github.com>2025-08-10 23:22:28 -0700
commitddf4fc0677f6b93162389063168458244e14ac59 (patch)
tree6a5ed9d344a1f28860754a8220659fd0fdefa243 /src/d/d_drawlist.cpp
parent87858822619e0a503e12f78690388c67df13f220 (diff)
Misc framework fixes (#2578)
Diffstat (limited to 'src/d/d_drawlist.cpp')
-rw-r--r--src/d/d_drawlist.cpp27
1 files changed, 25 insertions, 2 deletions
diff --git a/src/d/d_drawlist.cpp b/src/d/d_drawlist.cpp
index aaa698ba56..4ed9d94495 100644
--- a/src/d/d_drawlist.cpp
+++ b/src/d/d_drawlist.cpp
@@ -4,17 +4,18 @@
//
#include "d/d_drawlist.h"
-#include "d/d_s_play.h"
+#include "JSystem/J2DGraph/J2DAnimation.h"
+#include "JSystem/J2DGraph/J2DGrafContext.h"
#include "JSystem/J2DGraph/J2DScreen.h"
#include "JSystem/J3DGraphBase/J3DDrawBuffer.h"
#include "SSystem/SComponent/c_bg_s_shdw_draw.h"
#include "SSystem/SComponent/c_math.h"
#include "d/d_com_inf_game.h"
+#include "d/d_s_play.h"
#include "dol2asm.h"
#include "m_Do/m_Do_graphic.h"
#include "m_Do/m_Do_lib.h"
#include "m_Do/m_Do_mtx.h"
-#include "JSystem/J2DGraph/J2DGrafContext.h"
class dDlst_blo_c : public dDlst_base_c {
public:
@@ -911,6 +912,11 @@ void dDlst_2DMt_c::draw() {
}
}
+// stand-in for a stripped function that calls J2DPicture::getTexture
+JUTTexture* dummy_getTexture(J2DPicture* picture) {
+ return picture->getTexture(0);
+}
+
/* 80053A00-80053A9C 04E340 009C+00 0/0 1/1 0/0 .text __ct__10dDlst_2D_cFP7ResTIMGssssUc
*/
dDlst_2D_c::dDlst_2D_c(ResTIMG* i_timg, s16 i_posX, s16 i_posY, s16 i_sizeX, s16 i_sizeY,
@@ -934,6 +940,23 @@ void dDlst_blo_c::draw() {
mScreen.draw(field_0x120, field_0x124, dComIfGp_getCurrentGrafPort());
}
+// stand-in for a function that pulls in a bunch of inline functions but was presumably stripped
+void dummy_misc() {
+ J2DScreen* screen;
+ J2DPane* pane;
+ J2DPicture* picture;
+ J2DAnmBase* anmBase;
+ J2DAnmColor* anmColor;
+ delete anmBase;
+ picture->setBlack(JUtility::TColor(0, 0, 0, 0));
+ picture->setWhite(JUtility::TColor(0, 0, 0, 0));
+ pane->getTypeID();
+ pane->makeMatrix(0.0f, 0.0f);
+ pane->calcMtx();
+ screen->clearAnmTransform();
+ anmColor->searchUpdateMaterialID(screen);
+}
+
/* 80053CDC-80053CEC 04E61C 0010+00 0/0 2/2 0/0 .text init__8cM_rnd_cFiii */
void cM_rnd_c::init(int s0, int s1, int s2) {
seed0 = s0;