Make the caret width a twips value, instead of pixels.

This commit is contained in:
sfraser%netscape.com 1999-03-02 04:25:11 +00:00
parent f8b4395e6d
commit 884a0efa99
2 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ class nsCaretProperties
nsCaretProperties();
virtual ~nsCaretProperties() {}
virtual PRUint32 GetCaretWidth() { return mCaretWidth; }
virtual PRInt32 GetCaretWidth() { return mCaretWidth; }
virtual PRUint32 GetCaretBlinkRate() { return mBlinkRate; }
@ -37,12 +37,12 @@ class nsCaretProperties
// have value for no blinking
enum {
eDefaulBlinkRate = 500, // twice a second
eDefaultCaretWidth = 1 // one pixel wide
eDefaulBlinkRate = 500, // twice a second
eDefaultCaretWidth = 20 // 20 twips = 1 pixel
};
PRUint32 mCaretWidth; // caret width in twips
PRInt32 mCaretWidth; // caret width in twips
PRUint32 mBlinkRate; // blink rate in milliseconds

View File

@ -29,7 +29,7 @@ nsCaretProperties::nsCaretProperties()
, mBlinkRate(eDefaulBlinkRate)
{
// in your platform-specific class, get data from the OS in your constructor
mCaretWidth = 2; // 2 pixel caret on Windows
mCaretWidth = 30; // 2 pixel caret on Windows
}