Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

TLMDButton and Numglyphs = 2

I am currently trying to switch from LM2019 to LMD2024.
I have noticed that NumGlyphs can no longer be used as before if the bitmaps are not exactly rectangular.
In our use case, the image is 60 x 16 and NumGlyphs = 2.
In Loaded, the procedure TLMDGlyph.GuessGlyphNumber sets NumGlyphs to 1.

To make this work for me again, I have changed the following.
procedure TLMDGlyph.GuessGlyphNumber;
begin
  // BS 04.01.2024 Ändern von FNumGlyphs unterbinden
  if (FNumGlyphs = 2) and not FMaster.Empty and (FMaster.Width mod FNumGlyphs = 0) then
    Exit;
  ...
  ...
  ...
end;

Comments

Sign In or Register to comment.