dhewm3/neo
Daniel Gibson 76a9fdcebe idInterpreter::Call(Sys)Event(): Fix passing integers
All that code is kinda obfuscated, but the integer passing was plain
wrong (if sizeof(int) != sizeof(intptr_t), esp. noticeable on
 Big Endian).
data[i] is used by Callbacks.cpp, and for everything but floats it's
passed directly as an argument (interpreted as either an integer or
a pointer to idVec3 or whatever).
So storing an int in there with `( *( int * )&data[ i ] ) = int(...)`
only sets the first 4 bytes of that intptr_t, which is 8 bytes on 64bit
machines. On Little Endian that just happens to work, on Big Endian
it's the wrong 4 bytes.
2024-10-31 03:18:33 +01:00
..
cm Fix/work around other misc. compiler warnings 2023-01-05 09:06:34 +01:00
d3xp idInterpreter::Call(Sys)Event(): Fix passing integers 2024-10-31 03:18:33 +01:00
framework Merge branch 'SDL3' 2024-10-29 03:26:57 +01:00
game idInterpreter::Call(Sys)Event(): Fix passing integers 2024-10-31 03:18:33 +01:00
idlib Detect endianess in CMakeLists.txt, get rid of most SDL_endian.h uses 2024-10-07 03:15:50 +02:00
libs/imgui Fix Dear ImGui colors on Big Endian systems 2024-10-31 03:18:33 +01:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer SDL3: Handle r_fillWindowAlphaChan, cleanups and comments 2024-10-29 03:26:20 +01:00
sound Detect endianess in CMakeLists.txt, get rid of most SDL_endian.h uses 2024-10-07 03:15:50 +02:00
sys ImGui: Use base85-compressed font 2024-10-31 03:18:13 +01:00
tools Introduce and use sys_sdl.h to unify <SDL3/SDL.h> and <SDL.h> includes 2024-10-07 17:38:01 +02:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui HighDPI support, hopefully 2024-06-03 14:49:23 +02:00
CMakeLists.txt SDL3: Now works on Windows as well 2024-10-09 17:37:08 +02:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00
mmakefile.src # move the AROS specific folder icon and default.cfg mmakefile.src under neo/sys/aros/setup 2017-04-22 16:21:14 +02:00