mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-29 19:05:34 -05:00
Relocate SetAppCursor to legoutil (#144)
This commit is contained in:
parent
44c3ae478b
commit
dc869c441c
6 changed files with 12 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
||||||
#include "legoutil.h"
|
#include "legoutil.h"
|
||||||
|
|
||||||
|
#include "mxomni.h"
|
||||||
#include "mxtypes.h"
|
#include "mxtypes.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -101,3 +102,9 @@ void ConvertHSVToRGB(float h, float s, float v, float *r_out, float *b_out, floa
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x1003ef40
|
||||||
|
void SetAppCursor(WPARAM p_wparam)
|
||||||
|
{
|
||||||
|
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), 0x5400, p_wparam, 0);
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef LEGOUTIL_H
|
#ifndef LEGOUTIL_H
|
||||||
#define LEGOUTIL_H
|
#define LEGOUTIL_H
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
#include "extra.h"
|
#include "extra.h"
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
@ -23,5 +25,6 @@ inline T Max(T p_t1, T p_t2)
|
||||||
|
|
||||||
ExtraActionType MatchActionString(const char *);
|
ExtraActionType MatchActionString(const char *);
|
||||||
void ConvertHSVToRGB(float r, float g, float b, float* out_r, float* out_g, float* out_b);
|
void ConvertHSVToRGB(float r, float g, float b, float* out_r, float* out_g, float* out_b);
|
||||||
|
void SetAppCursor(WPARAM p_wparam);
|
||||||
|
|
||||||
#endif // LEGOUTIL_H
|
#endif // LEGOUTIL_H
|
||||||
|
|
|
@ -289,9 +289,3 @@ MxEventManager* EventManager()
|
||||||
{
|
{
|
||||||
return MxOmni::GetInstance()->GetEventManager();
|
return MxOmni::GetInstance()->GetEventManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x1003ef40
|
|
||||||
void SetAppCursor(WPARAM p_wparam)
|
|
||||||
{
|
|
||||||
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), 0x5400, p_wparam, 0);
|
|
||||||
}
|
|
||||||
|
|
|
@ -92,6 +92,4 @@ __declspec(dllexport) MxNotificationManager * NotificationManager();
|
||||||
MxVideoManager * MVideoManager();
|
MxVideoManager * MVideoManager();
|
||||||
MxAtomIdCounterSet* AtomIdCounterSet();
|
MxAtomIdCounterSet* AtomIdCounterSet();
|
||||||
|
|
||||||
void SetAppCursor(WPARAM p_wparam);
|
|
||||||
|
|
||||||
#endif // MXOMNI_H
|
#endif // MXOMNI_H
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include "mxtransitionmanager.h"
|
#include "mxtransitionmanager.h"
|
||||||
|
#include "legoutil.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(MxTransitionManager, 0x900);
|
DECOMP_SIZE_ASSERT(MxTransitionManager, 0x900);
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
#include "mxvideopresenter.h"
|
#include "mxvideopresenter.h"
|
||||||
#include "legoomni.h"
|
#include "legoomni.h"
|
||||||
|
|
||||||
|
|
||||||
// VTABLE 0x100d7ea0
|
// VTABLE 0x100d7ea0
|
||||||
class MxTransitionManager : public MxCore
|
class MxTransitionManager : public MxCore
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue