Recent

Author Topic: New version of BGRABitmap  (Read 287684 times)

funlw65

  • Full Member
  • ***
  • Posts: 148
    • Visual Pin Configurator for Nucleo 64pin boards
Re: New version of BGRABitmap
« Reply #645 on: November 12, 2022, 11:15:09 am »
Thank you, it would have been a shame not to have this great package that can make a lot of difference regarding the look of your app.

Regarding it's gtk2 dependence, I would have thought that that would have been it's "foot of clay" but even today Slackware 15 delivers the first version (1.x) of gtk libraries alongside gtk2, 3 and 4. And as a tip, a pleasant way to use Slackware 15 is to install Salix 15 or Slackel 7.5 distros... So, the future of gtk2 looks good!
« Last Edit: November 12, 2022, 11:30:02 am by funlw65 »
FreePascal 3.2.2, C 10.2.1, D 1.24 under Linux(init,musl,glibc), DragonflyBSD, NetBSD
gui: gtk2, qt5, raylib4.x+raygui3.x, nanovg 
tui: freevision, tvision2, termbox2+widgets, finalcut
db: typhoon-1.11...

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: New version of BGRABitmap
« Reply #646 on: November 12, 2022, 03:00:57 pm »
Congrats for the new release!  ;D
Tested with fpc-llvm 3.3.1. and works like charm ( WoW animations with -O4 on BGRABitmap/MSEgui apps).
Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

DomingoGP

  • Jr. Member
  • **
  • Posts: 62
Re: New version of BGRABitmap
« Reply #647 on: November 12, 2022, 05:57:24 pm »
Quote
Thanks to DomingoGP for the pull request  :)

You're welcome  :)

circular

  • Hero Member
  • *****
  • Posts: 4217
    • Personal webpage
Re: New version of BGRABitmap
« Reply #648 on: November 12, 2022, 07:37:33 pm »
Regarding it's gtk2 dependence, I would have thought that that would have been it's "foot of clay" but even today Slackware 15 delivers the first version (1.x) of gtk libraries alongside gtk2, 3 and 4. And as a tip, a pleasant way to use Slackware 15 is to install Salix 15 or Slackel 7.5 distros... So, the future of gtk2 looks good!
I am glad GTK2 is still on.  :)

Well maybe LCL will catch up at some point.

Congrats for the new release!  ;D
Tested with fpc-llvm 3.3.1. and works like charm ( WoW animations with -O4 on BGRABitmap/MSEgui apps).
Fre;D
Cool. Did you use the dev-bgrabitmap branch to overcome the compiler bug?

You're welcome  :)
I am glad to have some people contributing, I am less alone maintaining the package  :)
Conscience is the debugger of the mind

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: New version of BGRABitmap
« Reply #649 on: November 12, 2022, 09:19:24 pm »
Congrats for the new release!  ;D
Tested with fpc-llvm 3.3.1. and works like charm ( WoW animations with -O4 on BGRABitmap/MSEgui apps).
Fre;D
Cool. Did you use the dev-bgrabitmap branch...

I used the zip file from release: https://github.com/bgrabitmap/bgrabitmap/releases/tag/v11.5.3

Quote
... to overcome the compiler bug?

Huh, what compiler bug?  :-\
I did test compiling with fpc-llvm 3.3.1 (from main last week) using this to build it : https://forum.lazarus.freepascal.org/index.php/topic,61069.msg459333.html#msg459333
And no problems, all bgrabitmap anims + images are perfect.

Just tested now with fpc 3.2.2 and all ok too.

Ho, forgot to say that the tests where done on Debian 11, not yet on Windows.

[EDIT] OK, I see your patch for current bug in FPC with type helpers .
            Nice and thanks. (but I did not feel something wrong, maybe my code dont use it.)

Fre;D
« Last Edit: November 12, 2022, 09:39:19 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

funlw65

  • Full Member
  • ***
  • Posts: 148
    • Visual Pin Configurator for Nucleo 64pin boards
Re: New version of BGRABitmap
« Reply #650 on: November 13, 2022, 10:25:00 am »
bgrasvgimagelist unit (from dev-bgrabitmap) fails to compile with fpc-3.2.3...
The error messages are:
Quote
bgrasvgimagelist.pas(168,57) Error: Illegal qualifier
bgrasvgimagelist.pas(181,35) Error: Illegal qualifier
pointing to "i.ToString"


Code: Pascal  [Select][+][-]
  1. procedure TBGRASVGImageList.Load(const XMLConf: TXMLConfig);
  2. var
  3.   i, j, index: integer;
  4. begin
  5.   try
  6.     FItems.Clear;
  7.     j := XMLConf.GetValue('Count', 0);
  8.     for i := 0 to j - 1 do
  9.     begin
  10.       index := FItems.Add(TStringList.Create);
  11.       FItems[index].Text := XMLConf.GetValue('Item' + i.ToString + '/SVG', '');
  12.     end;
  13.   finally
  14.   end;
  15. end;
  16.  
  17. procedure TBGRASVGImageList.Save(const XMLConf: TXMLConfig);
  18. var
  19.   i: integer;
  20. begin
  21.   try
  22.     XMLConf.SetValue('Count', FItems.Count);
  23.     for i := 0 to FItems.Count - 1 do
  24.       XMLConf.SetValue('Item' + i.ToString + '/SVG', FItems[i].Text);
  25.   finally
  26.   end;
  27. end;
  28.  

Lazarus stopped compiling, don't know if there are more files affected... I looked at the repository and saw that only previously reported file has been patched... that means that the BGRABitmap has not been fully tested yet with 3.2.3 or 3.3.1 versions?
« Last Edit: November 13, 2022, 12:46:19 pm by funlw65 »
FreePascal 3.2.2, C 10.2.1, D 1.24 under Linux(init,musl,glibc), DragonflyBSD, NetBSD
gui: gtk2, qt5, raylib4.x+raygui3.x, nanovg 
tui: freevision, tvision2, termbox2+widgets, finalcut
db: typhoon-1.11...

circular

  • Hero Member
  • *****
  • Posts: 4217
    • Personal webpage
Re: New version of BGRABitmap
« Reply #651 on: November 17, 2022, 07:53:45 am »
bgrasvgimagelist.pas is rather in dev-bgracontrols.

The error is similar, a regression from the compiler regarding type helpers.

You can replace "i.ToString" by "IntToStr(i)". Does it fix the problem?

Not sure about BGRAControls, but personally I use stable FPC.

Using the development branch of FPC can cause some strange errors like this one.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: New version of BGRABitmap
« Reply #652 on: November 17, 2022, 01:30:42 pm »
> Not sure about BGRAControls, but personally I use stable FPC.

When I do bgracontrols I use stable FPC too.

funlw65

  • Full Member
  • ***
  • Posts: 148
    • Visual Pin Configurator for Nucleo 64pin boards
Re: New version of BGRABitmap
« Reply #653 on: November 18, 2022, 02:19:24 pm »
bgrasvgimagelist.pas is rather in dev-bgracontrols.

The error is similar, a regression from the compiler regarding type helpers.

You can replace "i.ToString" by "IntToStr(i)". Does it fix the problem?

Not sure about BGRAControls, but personally I use stable FPC.

Using the development branch of FPC can cause some strange errors like this one.

So, these fixes will be unnecessary when  the development version will be fixed? Well, I'm not so much into 3.3.1 fpc as I am into 3.2.3-fixes... Still, don't want to have a Frankenstein BGRABitmap version, I'll stick with the stable version for now. Thank you!
FreePascal 3.2.2, C 10.2.1, D 1.24 under Linux(init,musl,glibc), DragonflyBSD, NetBSD
gui: gtk2, qt5, raylib4.x+raygui3.x, nanovg 
tui: freevision, tvision2, termbox2+widgets, finalcut
db: typhoon-1.11...

circular

  • Hero Member
  • *****
  • Posts: 4217
    • Personal webpage
Re: New version of BGRABitmap
« Reply #654 on: May 26, 2023, 01:24:19 pm »
New version of BGRABitmap v11.5.4:
- fix compilation with FPC
- improve text justification with TextOutCurved
- fix some text rendering issues
- use recommended way of raising memory exception
- fix interface for some test projects

https://github.com/bgrabitmap/bgrabitmap/releases
Conscience is the debugger of the mind

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2050
  • Fifty shades of code.
    • Delphi & FreePascal
Re: New version of BGRABitmap
« Reply #655 on: May 26, 2023, 01:39:37 pm »
I hope OPM will add it soon.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

DomingoGP

  • Jr. Member
  • **
  • Posts: 62
Re: New version of BGRABitmap
« Reply #656 on: May 27, 2023, 09:45:29 am »
Thanks for the new release!  ;D

Okoba

  • Hero Member
  • *****
  • Posts: 533
Re: New version of BGRABitmap
« Reply #657 on: May 27, 2023, 11:10:03 am »
Well done @circular.

circular

  • Hero Member
  • *****
  • Posts: 4217
    • Personal webpage
Re: New version of BGRABitmap
« Reply #658 on: May 27, 2023, 01:59:44 pm »
Thanks, that’s not much but the key is to maintain so that users have a continuous experience.  :)
Conscience is the debugger of the mind

Okoba

  • Hero Member
  • *****
  • Posts: 533
Re: New version of BGRABitmap
« Reply #659 on: May 28, 2023, 04:12:55 pm »
Exactly. BGRABitmap was and is one of the best libraries I worked with.

 

TinyPortal © 2005-2018