Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-12

Bug Report Update - LCL: Bug+Fix, GTK drawing not accurate

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Title: LCL: Bug+Fix, GTK drawing not accurate

Entered by: Claude Rieth

Original Description:
As I am a PixelCounter (ErbsenZaehler in German), I found/fixed some bugs, mostly related to incorrect calculations of Right and Width, Bottom and Height.

gtkwinapi.inc

procedure ...Framed3d
..
gtk_paint_shadow(....Arect.Right-Arect.Left+1, //add 1 Arect.Bottom-Arect.Top+1

procedure ...DrawFrameControl

same problem on 3 or 4 places

Fixing this gives much cleaner user interfaces and consistent behaviour, ie

Width:=Right-Left+1;
Height:=Bottom-Top+1;

Updated by: Mattias

Status: Not a bug

Comments:
MG

Reply by email