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:
committed by
New Pagodi
parent
8d75368a30
commit
4e6763ccc2
@@ -1858,6 +1858,8 @@ void SurfaceD2D::DrawTextCommon(PRectangle rc, Font &font_, XYPOSITION ybase,
|
|||||||
#endif // wxUSE_GRAPHICS_DIRECT2D
|
#endif // wxUSE_GRAPHICS_DIRECT2D
|
||||||
|
|
||||||
Surface *Surface::Allocate(int technology) {
|
Surface *Surface::Allocate(int technology) {
|
||||||
|
wxUnusedVar(technology);
|
||||||
|
|
||||||
#if wxUSE_GRAPHICS_DIRECT2D
|
#if wxUSE_GRAPHICS_DIRECT2D
|
||||||
if ( technology == wxSTC_TECHNOLOGY_DIRECTWRITE ) {
|
if ( technology == wxSTC_TECHNOLOGY_DIRECTWRITE ) {
|
||||||
return new SurfaceD2D;
|
return new SurfaceD2D;
|
||||||
|
Reference in New Issue
Block a user