Turns out that all bitmap code eventually calls on ImplDrawBitmap and ImplDrawBitmapEx, which is called by a version with the same function signature but without a type parameter. If you make that sal_uLong parameter a default parameter, you can remove ImplDrawBitmap/Ex and just call on that version of DrawBitmap/Ex.
2a67712 Refactor VCL bitmap code
include/vcl/outdev.hxx | 14 ++-
vcl/source/outdev/bitmap.cxx | 214 ++++++++++++++++---------------------
vcl/source/outdev/transparent.cxx | 2 +-
3 files changed, 99 insertions(+), 131 deletions(-)
Upstream: cgit.freedesktop.org