Yeet the last of wxSize/wxPoint to stop leaking gdicmn everywhere

This commit is contained in:
Marek Roszko
2023-02-18 22:57:18 -05:00
parent bc8f81b14d
commit aacc9746e3
180 changed files with 695 additions and 700 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ bool PANEL_IMAGE_EDITOR::CheckValues()
}
// Test value correctness
wxSize psize = m_workingImage->GetSizePixels();
VECTOR2I psize = m_workingImage->GetSizePixels();
int size_min = (int) std::min( ( psize.x * tmp ), ( psize.y * tmp ) );
if( size_min < MIN_SIZE ) // if the size is too small, the image will be hard to locate
@@ -115,7 +115,7 @@ void PANEL_IMAGE_EDITOR::OnRedrawPanel( wxPaintEvent& event )
double scale = 1.0 / m_workingImage->GetScalingFactor();
dc.SetUserScale( scale, scale );
m_workingImage->DrawBitmap( &dc, wxPoint( 0, 0 ) );
m_workingImage->DrawBitmap( &dc, VECTOR2I( 0, 0 ) );
}