mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
db2b98c248
* MxDirectDraw functions and structures * fix indents, and globals * fix build, add mxdirectdraw build configuration * add new files to cmake * MxDirectDraw: Add code from my PR #19 on main repo Merging in the missing functions from my pull request for MxDirectDraw on the main repo. Credit to @foxtacles for the GetPrimaryBitDepth function. All match 100% on reccmp except ErrorToString, but the problem there is with the jump table at the end. Co-authored-by: Christian Semmler <mail@csemmler.com> * improve match * improve accuracy * improve accuracy * move _countof, impove up to 96.90% * Update LEGO1/mxdirectdraw.h Co-authored-by: MattKC <34096995+itsmattkc@users.noreply.github.com> * Update LEGO1/mxdirectdraw.cpp Co-authored-by: MattKC <34096995+itsmattkc@users.noreply.github.com> * Update LEGO1/mxdirectdraw.cpp Co-authored-by: MattKC <34096995+itsmattkc@users.noreply.github.com> * Update LEGO1/mxdirectdraw.cpp Co-authored-by: MattKC <34096995+itsmattkc@users.noreply.github.com> * Update LEGO1/mxdirectdraw.cpp * Update LEGO1/mxdirectdraw.cpp --------- Co-authored-by: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Co-authored-by: disinvite <disinvite@users.noreply.github.com> Co-authored-by: Christian Semmler <mail@csemmler.com>
15 lines
376 B
C
15 lines
376 B
C
#ifndef DECOMP_H
|
|
#define DECOMP_H
|
|
|
|
#define DECOMP_STATIC_ASSERT(V) namespace { typedef int foo[(V)?1:-1]; }
|
|
#define DECOMP_SIZE_ASSERT(T, S) DECOMP_STATIC_ASSERT(sizeof(T) == S)
|
|
|
|
#ifndef _countof
|
|
#define _countof(arr) sizeof(arr) / sizeof(arr[0])
|
|
#endif
|
|
|
|
typedef unsigned char undefined;
|
|
typedef unsigned short undefined2;
|
|
typedef unsigned int undefined4;
|
|
|
|
#endif // DECOMP_H
|