Recent

Author Topic: BGRAOpenGL3D why is a picture not shown (Linux)  (Read 9030 times)

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: BGRAOpenGL3D why is a picture not shown (Linux)
« Reply #15 on: June 30, 2016, 07:10:36 pm »
I think I found a way to fix the icon loading. To replace in TBGRAReaderIco.InternalRead
Code: Pascal  [Select][+][-]
  1.       with Img as TBGRACustomBitmap do
  2.       begin
  3.         SetSize(bestWidth,bestHeight);
  4.         GetImageFromCanvas(ico.Canvas,0,0);
  5.       end;
by
Code: Pascal  [Select][+][-]
  1.       (Img as TBGRACustomBitmap).Assign(ico);  
Conscience is the debugger of the mind

Michl

  • Full Member
  • ***
  • Posts: 226
Re: BGRAOpenGL3D why is a picture not shown (Linux)
« Reply #16 on: June 30, 2016, 10:24:51 pm »
EDIT: I applied the patch for the OpenGL call.
Thank you! Now the little examples (my SmileyTunnel and Mixer by Lainz) on this thread forum.lazarus.freepascal.org/index.php/topic,32626.0.html will run on 32bit Linux too (tested with Linux Mint KDE GTK2).

I think I found a way to fix the icon loading.
I've tested your code and works like a charm (tested 32 and 64bit Linux Mint KDE GTK2 and doesn't break the icon loading on 32 and 64bit Windows 7). QT and other widgetsets I haven't tested.

Thank you very much fur your fast support!  :)
Code: [Select]
type
  TLiveSelection = (lsMoney, lsChilds, lsTime);
  TLive = Array[0..1] of TLiveSelection;

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: BGRAOpenGL3D why is a picture not shown (Linux)
« Reply #17 on: June 30, 2016, 11:55:03 pm »
Wonderful.  :D

It is on Git.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018