gtk intf: added client rectangle size to rcPaint

git-svn-id: trunk@9522 -
This commit is contained in:
mattias 2006-06-28 21:51:25 +00:00
parent 006bc13dad
commit 9fd55ac210

View File

@ -1083,16 +1083,18 @@ function GtkPaintMessageToPaintMessage(var GtkPaintMsg: TLMGtkPaint;
FreeGtkPaintMsg: boolean): TLMPaint;
var
PS : PPaintStruct;
Widget: PGtkWidget;
begin
Result.Msg:=LM_PAINT;
New(PS);
PS^.hDC:=0;
Widget:=GtkPaintMsg.Data.Widget;
If GtkPaintMsg.Data.RepaintAll then
PS^.rcPaint := Rect(0,0,0,0)
PS^.rcPaint := Rect(0,0,Widget^.Allocation.Width,Widget^.Allocation.Height)
else
PS^.rcPaint := GtkPaintMsg.Data.Rect;
Result.DC:=BeginPaint(THandle(GtkPaintMsg.Data.Widget), PS^);
Result.DC:=BeginPaint(THandle(Widget), PS^);
Result.PaintStruct:=PS;
Result.Result:=0;
if FreeGtkPaintMsg then