summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-07 09:04:36 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-01-07 09:04:36 +0000
commit34433daddc3d8d06cb4188ae2d24f46e9734dc9f (patch)
treecfbacc7f3fdb621690241fe1d7b377e0d590cbef /src/corelib
parentc780e72b9f7f6d7eb39fcee5b551e4b285f58106 (diff)
downloadfpGUI-34433daddc3d8d06cb4188ae2d24f46e9734dc9f.tar.xz
* Moved many methods from Public to Private or Protected in gui_menu.pas
* Added a lot more sanity checks to prevent unnecessary processing. * Removed unnecessary requests for painting outside the HandlePaint method. * Menus are working again under Windows.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpgfx.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/fpgfx.pas b/src/corelib/fpgfx.pas
index eabce751..4cfdf4cb 100644
--- a/src/corelib/fpgfx.pas
+++ b/src/corelib/fpgfx.pas
@@ -289,6 +289,7 @@ function fpgRect(ALeft, ATop, AWidth, AHeight: integer): TfpgRect;
// Debug rountines
procedure PrintRect(var Rect: TRect);
procedure PrintRect(var Rect: TfpgRect);
+procedure PrintCoord(const x, y: TfpgCoord);
procedure DumpStack;
@@ -470,6 +471,11 @@ begin
' bottom=', Rect.Bottom, ' width=', Rect.Width, ' height=', Rect.Height);
end;
+procedure PrintCoord(const x, y: TfpgCoord);
+begin
+ writeln('x=', x, ' y=', y);
+end;
+
procedure DumpStack;
begin
writeln(' Stack trace:');