summaryrefslogtreecommitdiff
path: root/src/corelib/gfx_constants.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-27 14:15:56 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-27 14:15:56 +0000
commitd460287312276cd014a27a34abfadbe6478007b4 (patch)
tree37ee06a1636089bd1097cef4356abbad7b57046a /src/corelib/gfx_constants.pas
parent460d7e9925b4623639d4c6e8505ee8376b133d61 (diff)
downloadfpGUI-d460287312276cd014a27a34abfadbe6478007b4.tar.xz
* Moved some constants to the gfx_constants unit.
* Replaced some code/magic numbers with constants instead. * fpGUI Default Font is now a variable and not a constant. This allows us to change the default font at application startup.
Diffstat (limited to 'src/corelib/gfx_constants.pas')
-rw-r--r--src/corelib/gfx_constants.pas5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/gfx_constants.pas b/src/corelib/gfx_constants.pas
index d271bfbc..f204cbab 100644
--- a/src/corelib/gfx_constants.pas
+++ b/src/corelib/gfx_constants.pas
@@ -15,7 +15,7 @@ unit gfx_constants;
interface
uses
- gfxbase;
+ SysUtils, gfxbase;
resourcestring
@@ -74,7 +74,8 @@ const
DOUBLECLICK_MS = 320; // the max time between left-clicks for doubleclick
DOUBLECLICK_DISTANCE = 5; // max distance between points when doing doubleclick
-
+ ONE_MILISEC = 1/MSecsPerDay;
+
{ This is so that when we support LTR and RTL languages, the colon will be
added at the correct place. }