X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fgpu.h;h=c924b67b2c5880166455ed8406e6626b4248a79c;hb=8c84ba5f4478dd4e7cc48e86f1b023bc6b99ea9c;hp=63a5572034d10e58dabe036cefb140ed1df3a1df;hpb=c2502333b2e56e520bb9ecc2f931a639eee415d7;p=pcsx_rearmed.git diff --git a/libpcsxcore/gpu.h b/libpcsxcore/gpu.h index 63a55720..c924b67b 100644 --- a/libpcsxcore/gpu.h +++ b/libpcsxcore/gpu.h @@ -21,6 +21,9 @@ * that GPU plugin doesn't. */ +#ifndef __GPU_H__ +#define __GPU_H__ + #define PSXGPU_LCF (1<<31) #define PSXGPU_nBUSY (1<<26) #define PSXGPU_ILACE (1<<22) @@ -35,6 +38,8 @@ #define PSXGPU_TIMING_BITS (PSXGPU_LCF | PSXGPU_nBUSY) #define gpuSyncPluginSR() { \ - HW_GPU_STATUS &= PSXGPU_TIMING_BITS; \ - HW_GPU_STATUS |= GPU_readStatus() & ~PSXGPU_TIMING_BITS; \ + HW_GPU_STATUS &= SWAP32(PSXGPU_TIMING_BITS); \ + HW_GPU_STATUS |= SWAP32(GPU_readStatus() & ~PSXGPU_TIMING_BITS); \ } + +#endif /* __GPU_H__ */