-Icon in DRIVEBMP.DLL not transparent

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
CAP-Team
Junior Member
Junior Member
Posts: 44
Joined: 2006-09-19, 12:43 UTC
Location: Netherlands

-Icon in DRIVEBMP.DLL not transparent

Post by *CAP-Team »

I've updated my drivebmp.dll, and I noticed that the DISKNETHOOD icon isn't transparent even though the background color is equal to the upper left pixel, which should indicate which color to use as transparent color.

This "bug" also exists in Total Commander 8.01.

Image: http://members.home.nl/cap-team/got/drivebuttons.png
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I've updated my drivebmp.dll
Sorry, "drivebmp.dll" is not part of the standard TC distribution.

Where did you get it from?
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please contact the makers of this dll.
Author of Total Commander
https://www.ghisler.com
User avatar
CAP-Team
Junior Member
Junior Member
Posts: 44
Joined: 2006-09-19, 12:43 UTC
Location: Netherlands

Post by *CAP-Team »

I edited the DLL myself, originally I got it from here somewhere.
Just some icons aren't transparent, what should I do to fix that?
Instructions from Christian:

__________transmission_from_clipboard____________

OK, it's a bit tricky. Here are the instructions:

To replace the drive bitmaps in Total Commander, please do the following:
1. Unpack this 32-bit DLL drivebmp.dll to a directory on your harddisk
2. Change it with a resource editor to your needs. The DLL contains bitmaps,
not icons! Important: The upper left pixel determines the transparent color!
3. Put the following line in your wincmd.ini, section [Configuration]:
drivelib=c:\<path to library>\drvbmps.dll
4. Restart Total Commander

This function requires Total Commander 6.0 or newer!

If you don't have a resource editor, you can send me the images, and I will create the DLL for you. The images need to bitmaps (not icons) of any color depth, size 16x16. The upper left pixel color determines which color is transparent.

Sorry, but Delphi uses such bitmaps for its buttons.
______________end_of_transmission________________
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Normally the color of the top-left pixel determines the color which is transparent. But this seems to be the case here too! Maybe it's a bottom-up bitmap, then it would be the bottom left pixel(?).
Author of Total Commander
https://www.ghisler.com
User avatar
CAP-Team
Junior Member
Junior Member
Posts: 44
Joined: 2006-09-19, 12:43 UTC
Location: Netherlands

Post by *CAP-Team »

That seems to fix the problem! Thanks Christian!
Post Reply