mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-22 17:47:20 +03:00
Try to fix compilation
This commit is contained in:
parent
e392f442b6
commit
85d6e68889
5 changed files with 18 additions and 7 deletions
|
|
@ -16,7 +16,8 @@
|
|||
#include "Renderer.h"
|
||||
|
||||
#if defined __ARMCC_VERSION && !defined _DEBUG
|
||||
#pragma O2 // fixes crash
|
||||
// fixes crash
|
||||
#pragma O2
|
||||
#endif
|
||||
|
||||
int32 CCullZones::NumCullZones;
|
||||
|
|
|
|||
|
|
@ -80,7 +80,12 @@ void TransformPoints(CVuVector *out, int n, const CMatrix &mat, const RwV3d *in,
|
|||
": : "r" (out) , "r" (n), "r" (&mat), "r" (in), "r" (stride): "memory");
|
||||
#else
|
||||
while(n--){
|
||||
#ifdef S60V3
|
||||
const RwV3d i = *in;
|
||||
*out = mat * i;
|
||||
#else
|
||||
*out = mat * *in;
|
||||
#endif
|
||||
in = (RwV3d*)((uint8*)in + stride);
|
||||
out++;
|
||||
}
|
||||
|
|
@ -110,7 +115,12 @@ void TransformPoints(CVuVector *out, int n, const CMatrix &mat, const CVuVector
|
|||
": : "r" (out) , "r" (n), "r" (&mat) ,"r" (in): "memory");
|
||||
#else
|
||||
while(n--){
|
||||
#ifdef S60V3
|
||||
const RwV3d i = *in;
|
||||
*out = mat * i;
|
||||
#else
|
||||
*out = mat * *in;
|
||||
#endif
|
||||
in++;
|
||||
out++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#if defined __ARMCC_VERSION && !defined _DEBUG
|
||||
#pragma O2 // fixes crash
|
||||
// fixes crash
|
||||
#pragma O2
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
|
|
|
|||
|
|
@ -445,10 +445,9 @@ public:
|
|||
TRACE("gGameState = GS_PLAYING_GAME;");
|
||||
break;
|
||||
case GS_PLAYING_GAME:
|
||||
if (!ForegroundApp) break;
|
||||
float ms = (float)CTimer::GetCurrentTimeInCycles() / (float)CTimer::GetCyclesPerMillisecond();
|
||||
if ( RwInitialised ) {
|
||||
if (!CMenuManager::m_PrefsFrameLimiter || (1000.0f / (float)RsGlobal.maxFPS) < ms)
|
||||
// float ms = (float)CTimer::GetCurrentTimeInCycles() / (float)CTimer::GetCyclesPerMillisecond();
|
||||
if (RwInitialised && ForegroundApp) {
|
||||
// if (!CMenuManager::m_PrefsFrameLimiter || (1000.0f / (float)RsGlobal.maxFPS) < ms)
|
||||
RsEventHandler(rsIDLE, (void *)TRUE);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue