diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-10-22 09:24:06 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-10-22 09:24:06 +0200 |
| commit | e7adc6b7f9ae7c6115c9d4b184dd2856ec699737 (patch) | |
| tree | 37b49c83c480c08f4c6651b1c2ca6463dd6186da /src | |
| parent | fc7d204d4bca211f2462a0534e77f0929f121330 (diff) | |
| download | box64-e7adc6b7f9ae7c6115c9d4b184dd2856ec699737.tar.gz box64-e7adc6b7f9ae7c6115c9d4b184dd2856ec699737.zip | |
[BOX32] Added 1 more sdl2 wrapped function
Diffstat (limited to 'src')
| -rw-r--r-- | src/wrapped32/generated/functions_list.txt | 1 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrapper32.c | 2 | ||||
| -rw-r--r-- | src/wrapped32/generated/wrapper32.h | 1 | ||||
| -rw-r--r-- | src/wrapped32/wrappedsdl2_private.h | 2 |
4 files changed, 5 insertions, 1 deletions
diff --git a/src/wrapped32/generated/functions_list.txt b/src/wrapped32/generated/functions_list.txt index 2c523fd9..3eeb0871 100644 --- a/src/wrapped32/generated/functions_list.txt +++ b/src/wrapped32/generated/functions_list.txt @@ -165,6 +165,7 @@ #() iFpI -> iFpI #() iFpu -> iFpu #() iFpU -> iFpU +#() iFpf -> iFpf #() iFpd -> iFpd #() iFpl -> iFpl #() iFpL -> iFpL diff --git a/src/wrapped32/generated/wrapper32.c b/src/wrapped32/generated/wrapper32.c index 016b43e9..2c15e1a5 100644 --- a/src/wrapped32/generated/wrapper32.c +++ b/src/wrapped32/generated/wrapper32.c @@ -255,6 +255,7 @@ typedef int32_t (*iFpi_t)(void*, int32_t); typedef int32_t (*iFpI_t)(void*, int64_t); typedef int32_t (*iFpu_t)(void*, uint32_t); typedef int32_t (*iFpU_t)(void*, uint64_t); +typedef int32_t (*iFpf_t)(void*, float); typedef int32_t (*iFpd_t)(void*, double); typedef int32_t (*iFpl_t)(void*, intptr_t); typedef int32_t (*iFpL_t)(void*, uintptr_t); @@ -1766,6 +1767,7 @@ void iFpi_32(x64emu_t *emu, uintptr_t fcn) { iFpi_t fn = (iFpi_t)fcn; R_EAX = fn void iFpI_32(x64emu_t *emu, uintptr_t fcn) { iFpI_t fn = (iFpI_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(int64_t, R_ESP + 8)); } void iFpu_32(x64emu_t *emu, uintptr_t fcn) { iFpu_t fn = (iFpu_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(uint32_t, R_ESP + 8)); } void iFpU_32(x64emu_t *emu, uintptr_t fcn) { iFpU_t fn = (iFpU_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(uint64_t, R_ESP + 8)); } +void iFpf_32(x64emu_t *emu, uintptr_t fcn) { iFpf_t fn = (iFpf_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(float, R_ESP + 8)); } void iFpd_32(x64emu_t *emu, uintptr_t fcn) { iFpd_t fn = (iFpd_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ptri(double, R_ESP + 8)); } void iFpl_32(x64emu_t *emu, uintptr_t fcn) { iFpl_t fn = (iFpl_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_long(from_ptri(long_t, R_ESP + 8))); } void iFpL_32(x64emu_t *emu, uintptr_t fcn) { iFpL_t fn = (iFpL_t)fcn; R_EAX = fn(from_ptriv(R_ESP + 4), from_ulong(from_ptri(ulong_t, R_ESP + 8))); } diff --git a/src/wrapped32/generated/wrapper32.h b/src/wrapped32/generated/wrapper32.h index a8c98c69..a135ac8c 100644 --- a/src/wrapped32/generated/wrapper32.h +++ b/src/wrapped32/generated/wrapper32.h @@ -206,6 +206,7 @@ void iFpi_32(x64emu_t *emu, uintptr_t fnc); void iFpI_32(x64emu_t *emu, uintptr_t fnc); void iFpu_32(x64emu_t *emu, uintptr_t fnc); void iFpU_32(x64emu_t *emu, uintptr_t fnc); +void iFpf_32(x64emu_t *emu, uintptr_t fnc); void iFpd_32(x64emu_t *emu, uintptr_t fnc); void iFpl_32(x64emu_t *emu, uintptr_t fnc); void iFpL_32(x64emu_t *emu, uintptr_t fnc); diff --git a/src/wrapped32/wrappedsdl2_private.h b/src/wrapped32/wrappedsdl2_private.h index c53a273d..0886f20a 100644 --- a/src/wrapped32/wrappedsdl2_private.h +++ b/src/wrapped32/wrappedsdl2_private.h @@ -617,7 +617,7 @@ GO(SDL_SetRenderDrawColor, iFpCCCC) //GO(SDL_SetTextureScaleMode, iFpu) GO(SDL_SetThreadPriority, iFu) GO(SDL_SetWindowBordered, vFpi) -//GO(SDL_SetWindowBrightness, iFpf) +GO(SDL_SetWindowBrightness, iFpf) GO(SDL_SetWindowData, pFppp) GOM(SDL_SetWindowDisplayMode, iFpp) //%noE GO(SDL_SetWindowFullscreen, iFpu) |