From d802d392811be44d34ae9cd23f616db93e54c50f Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 9 Mar 2014 21:14:26 +0100 Subject: clang-modernize -use-nullptr and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine --- Source/Core/VideoCommon/Debugger.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/Core/VideoCommon/Debugger.cpp') diff --git a/Source/Core/VideoCommon/Debugger.cpp b/Source/Core/VideoCommon/Debugger.cpp index affeb9183a..bd711439a9 100644 --- a/Source/Core/VideoCommon/Debugger.cpp +++ b/Source/Core/VideoCommon/Debugger.cpp @@ -15,7 +15,7 @@ //void UpdateFPSDisplay(const char *text); extern NativeVertexFormat *g_nativeVertexFmt; -GFXDebuggerBase *g_pdebugger = NULL; +GFXDebuggerBase *g_pdebugger = nullptr; volatile bool GFXDebuggerPauseFlag = false; // if true, the GFX thread will be spin locked until it's false again volatile PauseEvent GFXDebuggerToPauseAtNext = NOT_PAUSE; // Event which will trigger spin locking the GFX thread volatile int GFXDebuggerEventToPauseCount = 0; // Number of events to wait for until GFX thread will be paused @@ -27,14 +27,14 @@ void GFXDebuggerUpdateScreen() if (D3D::bFrameInProgress) { D3D::dev->SetRenderTarget(0, D3D::GetBackBufferSurface()); - D3D::dev->SetDepthStencilSurface(NULL); + D3D::dev->SetDepthStencilSurface(nullptr); - D3D::dev->StretchRect(FramebufferManager::GetEFBColorRTSurface(), NULL, - D3D::GetBackBufferSurface(), NULL, + D3D::dev->StretchRect(FramebufferManager::GetEFBColorRTSurface(), nullptr, + D3D::GetBackBufferSurface(), nullptr, D3DTEXF_LINEAR); D3D::dev->EndScene(); - D3D::dev->Present(NULL, NULL, NULL, NULL); + D3D::dev->Present(nullptr, nullptr, nullptr, nullptr); D3D::dev->SetRenderTarget(0, FramebufferManager::GetEFBColorRTSurface()); D3D::dev->SetDepthStencilSurface(FramebufferManager::GetEFBDepthRTSurface()); @@ -43,7 +43,7 @@ void GFXDebuggerUpdateScreen() else { D3D::dev->EndScene(); - D3D::dev->Present(NULL, NULL, NULL, NULL); + D3D::dev->Present(nullptr, nullptr, nullptr, nullptr); D3D::dev->BeginScene(); }*/ } -- cgit v1.2.3