OSX build fix for BPStructs. Thanks to pauldacheez for the fix.

This commit is contained in:
skidau 2012-06-02 11:28:43 +10:00
parent bb4c9e2205
commit d74c50b942
1 changed files with 4 additions and 4 deletions

View File

@ -696,19 +696,19 @@ void BPReload()
SetColorMask(); SetColorMask();
OnPixelFormatChange(); OnPixelFormatChange();
{ {
BPCmd bp = {BPMEM_TX_SETMODE0, 0xFFFFFF, ((u32*)&bpmem)[BPMEM_TX_SETMODE0]}; BPCmd bp = {BPMEM_TX_SETMODE0, 0xFFFFFF, static_cast<int>(((u32*)&bpmem)[BPMEM_TX_SETMODE0])};
SetTextureMode(bp); SetTextureMode(bp);
} }
{ {
BPCmd bp = {BPMEM_TX_SETMODE0_4, 0xFFFFFF, ((u32*)&bpmem)[BPMEM_TX_SETMODE0_4]}; BPCmd bp = {BPMEM_TX_SETMODE0_4, 0xFFFFFF, static_cast<int>(((u32*)&bpmem)[BPMEM_TX_SETMODE0_4])};
SetTextureMode(bp); SetTextureMode(bp);
} }
{ {
BPCmd bp = {BPMEM_FIELDMASK, 0xFFFFFF, ((u32*)&bpmem)[BPMEM_FIELDMASK]}; BPCmd bp = {BPMEM_FIELDMASK, 0xFFFFFF, static_cast<int>(((u32*)&bpmem)[BPMEM_FIELDMASK])};
SetInterlacingMode(bp); SetInterlacingMode(bp);
} }
{ {
BPCmd bp = {BPMEM_FIELDMODE, 0xFFFFFF, ((u32*)&bpmem)[BPMEM_FIELDMODE]}; BPCmd bp = {BPMEM_FIELDMODE, 0xFFFFFF, static_cast<int>(((u32*)&bpmem)[BPMEM_FIELDMODE])};
SetInterlacingMode(bp); SetInterlacingMode(bp);
} }
} }