Minor tweaks and fixes

This commit is contained in:
Birunthan Mohanathas
2013-03-27 18:14:27 +02:00
parent f16224793e
commit c6374f7c12
6 changed files with 30 additions and 34 deletions

View File

@ -69,7 +69,7 @@ CanvasD2D::CanvasD2D() : Canvas(),
CanvasD2D::~CanvasD2D()
{
DiscardDeviceResources();
Dispose();
Finalize();
}
@ -118,7 +118,7 @@ void CanvasD2D::Finalize()
}
}
void CanvasD2D::DiscardDeviceResources()
void CanvasD2D::Dispose()
{
SafeRelease(&m_Target);
@ -133,7 +133,7 @@ void CanvasD2D::Resize(int w, int h)
{
__super::Resize(w, h);
DiscardDeviceResources();
Dispose();
m_Bitmap.Resize(w, h);