Fix harmless signed/unsigned comparison warning in Direct2D code

Cast D2DERR_RECREATE_TARGET, which is not of HRESULT type, to it to avoid gcc
warnings.
This commit is contained in:
Maarten Bent
2015-10-16 17:11:57 +02:00
committed by Vadim Zeitlin
parent 99573ecddd
commit 0b1bc6b0b1

View File

@@ -3345,7 +3345,7 @@ void wxD2DContext::Flush()
{ {
HRESULT result = m_renderTargetHolder->Flush(); HRESULT result = m_renderTargetHolder->Flush();
if (result == D2DERR_RECREATE_TARGET) if (result == (HRESULT)D2DERR_RECREATE_TARGET)
{ {
ReleaseDeviceDependentResources(); ReleaseDeviceDependentResources();
} }