Recent

Author Topic: Small bug in BGRAControls  (Read 4878 times)

ik

  • Jr. Member
  • **
  • Posts: 88
  • ik
    • LINESIP
Small bug in BGRAControls
« on: October 12, 2011, 10:55:40 pm »
The BGRAControls have a small bug when not using Windows:

At the BGRAImageButton unit, the uses class is as follows:
Code: [Select]
uses
  BGRABitmap, BGRABitmapTypes, BGRATextFX, BGRATextFXTypes, Buttons, Classes,
  Controls, FileUtil, Graphics, LMessages, LResources, SysUtils,
  {$IFDEF WINDOWS}mmsystem{$ENDIF}; 

The problem is, that the "," after SysUtils is wrong. It should be inside the IFDEF instead, and then it works also in Linux.

lainz

  • Guest
Re: Small bug in BGRAControls
« Reply #1 on: October 13, 2011, 12:15:41 am »
The BGRAControls have a small bug when not using Windows:

At the BGRAImageButton unit, the uses class is as follows:
Code: [Select]
uses
  BGRABitmap, BGRABitmapTypes, BGRATextFX, BGRATextFXTypes, Buttons, Classes,
  Controls, FileUtil, Graphics, LMessages, LResources, SysUtils,
  {$IFDEF WINDOWS}mmsystem{$ENDIF}; 

The problem is, that the "," after SysUtils is wrong. It should be inside the IFDEF instead, and then it works also in Linux.

Thanks, I've fixed it.

BTW You know some unit to play wav sounds under linux?

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

Shebuka

  • Sr. Member
  • ****
  • Posts: 427
Re: Small bug in BGRAControls
« Reply #3 on: October 13, 2011, 10:06:01 am »
BTW You know some unit to play wav sounds under linux?

Have you tried my threaded player?
http://www.lazarus.freepascal.org/index.php/topic,13909.msg73246.html#msg73246
(apply the fix to Execute procedure from the next post)

 

TinyPortal © 2005-2018