summaryrefslogtreecommitdiff
path: root/gfx/gdi
diff options
context:
space:
mode:
authorsekelsenmat <sekelsenmat@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-11 21:49:28 +0000
committersekelsenmat <sekelsenmat@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-07-11 21:49:28 +0000
commit8bf4f37e3b99775cf9f6253077217ac0174771e0 (patch)
treef48ba67ceb633d7135b5c69bf7adacdad450b557 /gfx/gdi
parent9f5b0fc182530301b211d3aae3731c50ddcde369 (diff)
downloadfpGUI-8bf4f37e3b99775cf9f6253077217ac0174771e0.tar.xz
Changed Invalidate to have no parameters. Now button down kind of works on the new multihandle
Diffstat (limited to 'gfx/gdi')
-rw-r--r--gfx/gdi/gfx_gdi.pas12
1 files changed, 3 insertions, 9 deletions
diff --git a/gfx/gdi/gfx_gdi.pas b/gfx/gdi/gfx_gdi.pas
index a6107d24..64622ab8 100644
--- a/gfx/gdi/gfx_gdi.pas
+++ b/gfx/gdi/gfx_gdi.pas
@@ -200,7 +200,7 @@ type
procedure SetClientSize(const ASize: TSize); override;
procedure SetMinMaxClientSize(const AMinSize, AMaxSize: TSize); override;
procedure Show; override;
- procedure Invalidate(const ARect: TRect); override;
+ procedure Invalidate; override;
procedure PaintInvalidRegion; override;
procedure CaptureMouse; override;
procedure ReleaseMouse; override;
@@ -1512,15 +1512,9 @@ begin
end;
-procedure TGDIWindow.Invalidate(const ARect: TRect);
-var
- Rect: Windows.Rect;
+procedure TGDIWindow.Invalidate;
begin
- Rect.Left := ARect.Left;
- Rect.Top := ARect.Top;
- Rect.Right := ARect.Right;
- Rect.Bottom := ARect.Bottom;
- Windows.InvalidateRect(Handle, Rect, False);
+ Windows.InvalidateRect(Handle, nil, True);
end;