mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Re-define nil as nullptr, cleaning up some potential issues along the way
This commit is contained in:
@ -752,7 +752,7 @@ void plDXPipeline::IClearMembers()
|
||||
fULutTextureRef = nil;
|
||||
for( i = 0; i < kMaxRenderTargetNext; i++ )
|
||||
fBlurVBuffers[i] = nil;
|
||||
fBlurVSHandle = nil;
|
||||
fBlurVSHandle = 0;
|
||||
|
||||
fD3DObject = nil;
|
||||
fD3DDevice = nil;
|
||||
@ -4352,7 +4352,7 @@ bool plDXPipeline::CaptureScreen( plMipmap *dest, bool flipVertical, uint16_t d
|
||||
surface->UnlockRect();
|
||||
ReleaseObject( surface );
|
||||
|
||||
if( desiredWidth != 0 && desiredHeight != nil )
|
||||
if( desiredWidth != 0 && desiredHeight != 0 )
|
||||
{
|
||||
// Rescale to the right size
|
||||
dest->ResizeNicely( desiredWidth, desiredHeight, plMipmap::kDefaultFilter );
|
||||
@ -11889,7 +11889,7 @@ void plDXPipeline::ISetErrorMessage( char *errStr )
|
||||
plStatusLog::AddLineS("pipeline.log", fSettings.fErrorStr);
|
||||
}
|
||||
else
|
||||
fSettings.fErrorStr[ 0 ] = nil;
|
||||
fSettings.fErrorStr[ 0 ] = 0;
|
||||
}
|
||||
|
||||
// IGetD3DError /////////////////////////////////////////////////////////////////
|
||||
|
@ -120,7 +120,7 @@ void plDXTextFont::ICreateTexture( uint16_t *data )
|
||||
// Lock the texture and write our values out
|
||||
fD3DTexture->LockRect( 0, &lockInfo, 0, 0 );
|
||||
memcpy( lockInfo.pBits, data, fTextureWidth * fTextureHeight * sizeof( uint16_t ) );
|
||||
fD3DTexture->UnlockRect( nil );
|
||||
fD3DTexture->UnlockRect( 0 );
|
||||
}
|
||||
|
||||
void plDXTextFont::CreateShared(IDirect3DDevice9* device)
|
||||
|
Reference in New Issue
Block a user