Fix harmless unused parameter warning in wxSTC code

The recently added "technology" parameter is unused when Direct2D is not
used, avoid compiler complains about this.
This commit is contained in:
Vadim Zeitlin
2018-01-25 18:38:01 +01:00
committed by New Pagodi
parent 8d75368a30
commit 4e6763ccc2

View File

@@ -1858,6 +1858,8 @@ void SurfaceD2D::DrawTextCommon(PRectangle rc, Font &font_, XYPOSITION ybase,
#endif // wxUSE_GRAPHICS_DIRECT2D
Surface *Surface::Allocate(int technology) {
wxUnusedVar(technology);
#if wxUSE_GRAPHICS_DIRECT2D
if ( technology == wxSTC_TECHNOLOGY_DIRECTWRITE ) {
return new SurfaceD2D;