Fix building for host compiler

This commit is contained in:
Henrique Gemignani Passos Lima 2023-01-19 11:15:00 +02:00
parent f02833c84e
commit 3417e5c576
No known key found for this signature in database
GPG Key ID: E224F951761145F8
6 changed files with 12 additions and 12 deletions

View File

@ -7,8 +7,8 @@ class CGuiCompoundWidget : public CGuiWidget {
public:
FourCC GetWidgetTypeID() const override { return -1; }
void OnVisibleChange() override;
void OnActiveChange() override;
void OnVisible() override;
void OnActivate() override;
virtual CGuiWidget* GetWorkerWidget(int id) const;
private:
};

View File

@ -11,7 +11,7 @@ public:
CGuiWidget* GetSelectedWidget();
const CGuiWidget* GetSelectedWidget() const;
bool AddWorkerWidget(CGuiWidget* worker) override;
void OnActiveChange() override;
void OnActivate() override;
private:
uint xb8_workerCount;

View File

@ -14,10 +14,10 @@ public:
bool flag);
const TLockedToken< CModel >& GetModel() const { return xb8_model; }
bool GetIsFinishedLoadingWidgetSpecific() override;
void Touch() override;
void Draw(const CGuiWidgetDrawParms& parms) override;
bool TestCursorHit(const CMatrix4f& vp, const CVector2f& point) const override;
bool GetIsFinishedLoadingWidgetSpecific() const override;
void Touch() const override;
void Draw(const CGuiWidgetDrawParms& parms) const override;
// bool TestCursorHit(const CMatrix4f& vp, const CVector2f& point) const override;
private:
TLockedToken< CModel > xb8_model;

View File

@ -7,7 +7,7 @@ class CGuiPane : public CGuiWidget {
public:
CGuiPane(const CGuiWidgetParms& parms, const CVector2f& dim, const CVector3f& scaleCenter);
void Draw(const CGuiWidgetDrawParms& parms) override;
void Draw(const CGuiWidgetDrawParms& parms) const override;
virtual void ScaleDimensions(const CVector3f& scale);
virtual void SetDimensions(const CVector2f& dim, bool initVBO);
virtual CVector2f GetDimensions() const;

View File

@ -20,11 +20,11 @@ public:
CGuiTextSupport& TextSupport() { return xd4_textSupport; }
const CGuiTextSupport& GetTextSupport() const { return xd4_textSupport; }
void Update(float dt) override;
bool GetIsFinishedLoadingWidgetSpecific() override;
bool GetIsFinishedLoadingWidgetSpecific() const override;
void SetDimensions(const CVector2f& dim, bool initVBO) override;
void ScaleDimensions(const CVector3f& scale) override;
void Draw(const CGuiWidgetDrawParms& parms) override;
bool TestCursorHit(const CMatrix4f& vp, const CVector2f& point) const override;
void Draw(const CGuiWidgetDrawParms& parms) const override;
// bool TestCursorHit(const CMatrix4f& vp, const CVector2f& point) const override;
private:
CGuiTextSupport xd4_textSupport;

View File

@ -22,7 +22,7 @@ bool CAudioSys::mProLogic2 = true;
const rstl::string CAudioSys::mpDefaultInvalidString(rstl::string_l("NULL"));
void* DoMalloc(size_t len) { return new char[len]; }
void* DoMalloc(u32 len) { return new char[len]; }
void DoFree(void* ptr) {
if (!ptr) {