mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 01:17:55 -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 "mxomni.h"
|
||||
#include "mxtypes.h"
|
||||
|
||||
#include <string.h>
|
||||
|
@ -101,3 +102,9 @@ void ConvertHSVToRGB(float h, float s, float v, float *r_out, float *b_out, floa
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x1003ef40
|
||||
void SetAppCursor(WPARAM p_wparam)
|
||||
{
|
||||
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), 0x5400, p_wparam, 0);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef LEGOUTIL_H
|
||||
#define LEGOUTIL_H
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "extra.h"
|
||||
|
||||
template <class T>
|
||||
|
@ -23,5 +25,6 @@ inline T Max(T p_t1, T p_t2)
|
|||
|
||||
ExtraActionType MatchActionString(const char *);
|
||||
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
|
||||
|
|
|
@ -288,10 +288,4 @@ MxMusicManager* MusicManager()
|
|||
MxEventManager* EventManager()
|
||||
{
|
||||
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();
|
||||
MxAtomIdCounterSet* AtomIdCounterSet();
|
||||
|
||||
void SetAppCursor(WPARAM p_wparam);
|
||||
|
||||
#endif // MXOMNI_H
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "mxtransitionmanager.h"
|
||||
#include "legoutil.h"
|
||||
#include "legovideomanager.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(MxTransitionManager, 0x900);
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include "mxvideopresenter.h"
|
||||
#include "legoomni.h"
|
||||
|
||||
|
||||
// VTABLE 0x100d7ea0
|
||||
class MxTransitionManager : public MxCore
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue