Bitmap transparency (mask) not respected by TMenuItem
Original Reporter info from Mantis: dezlov
-
Reporter name: Denis Kozlov
Original Reporter info from Mantis: dezlov
- Reporter name: Denis Kozlov
Description:
The drawing of the menu item icon on Windows platform does not respect the bitmap transparency (mask) properties.
For example, assigning TMenuItem.Bitmap
to an image with Transparent=False
(i.e. no mask) will draw an image with the bottom left pixel used as mask, which is logically backwards and breaks backwards compatibility too.
Affects both 2.0 and TRUNK branches.
My suggestion is to respect the Transparent
and TransparentColor
properties of the bitmap.
The attached patch achieves exactly that.
Additional information:
This issue was introduced in revision 57227:
https://github.com/graemeg/lazarus/commit/4ae869ad6ca2b50d032f6f005d073610c35d405d
Mantis conversion info:
- Mantis ID: 36490
- Version: 2.1 (SVN)
- Fixed in revision: 62551 (#872fe5d8)
- Monitored by: » dezlov (Denis Kozlov)