NeonNight skin is raising exception

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #69313
    Lasse
    Participant

    NeonNight skin is raising exception: “Scan line index out of range”.

    Attachments:
    You must be logged in to view attached files.
    #69339
    Support
    Keymaster

    This error is repeatable? Can I repeat it somehow?

    #69352
    Lasse
    Participant

    Well, this is weird. I can’t repeat it in your demo using TsSkinSelector but in my own program I can. I have tried all skins and that is the only skin causing that error. I will try to figure out why.

    #69377
    Support
    Keymaster

    Are you sure this skin is up-to-date? If you can give me a demo, I will check why it happens.

    #69425
    Lasse
    Participant

    I found the reason which UI element is causing this in my application. It happens when I have a title bar items aligned right and the style is bsMenu. But I still can’t repeat this in your demo.

    So, I ended up to fix this:

    procedure CopyByMask32(R1, R2: TRect; const Bmp1, Bmp2: TBitmap; const CI: TCacheInfo; const MaskData: TsMaskData);
    ...
    CacheBMP := Bmp.ScanLine[R1.Top + PosY + Y];
    =>
    CacheBMP := Bmp.ScanLine[Max(R1.Top + PosY + Y, 0)]; // Lasse
    #69445
    Support
    Keymaster

    Thank you for this information.
    I can repeat and fix it now, seems.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.