summaryrefslogtreecommitdiffstats
path: root/src/core/common.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-26 21:50:52 +0200
committeraap <aap@papnet.eu>2020-04-26 21:50:52 +0200
commit1b5616688ea64e1b32783dddcde22e7447a742ef (patch)
tree0cc818828f794e2dc3309d95667b0ebd539bbafe /src/core/common.h
parentupdate librw (diff)
downloadre3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar
re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.gz
re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.bz2
re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.lz
re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.xz
re3-1b5616688ea64e1b32783dddcde22e7447a742ef.tar.zst
re3-1b5616688ea64e1b32783dddcde22e7447a742ef.zip
Diffstat (limited to 'src/core/common.h')
-rw-r--r--src/core/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h
index 2cc3d98c..0b4686d8 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -31,6 +31,7 @@
#define HIERNODEID(hier, i) ((hier)->nodeInfo[i].id)
#define HANIMFRAMES(anim) ((anim)->keyframes)
#else
+#define RWHALFPIXEL // always d3d
#define STREAMPOS(str) ((str)->Type.memory.position)
#define STREAMFILE(str) ((str)->Type.file.fpFile)
#define HIERNODEINFO(hier) ((hier)->pNodeInfo)
@@ -38,6 +39,12 @@
#define HANIMFRAMES(anim) ((anim)->pFrames)
#endif
+#ifdef RWHALFPIXEL
+#define HALFPX (0.5f)
+#else
+#define HALFPX (0.0f)
+#endif
+
#define rwVENDORID_ROCKSTAR 0x0253F2
// Get rid of bullshit windows definitions, we're not running on an 8086