-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DIRECTOR: Implement text line height #6480
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some adjustments required
Datum castRef = g_lingo->pop(); | ||
|
||
if (castRef.type != CASTREF) { | ||
warning("Incorrect argument type for lineHeight"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, you should use g_lingo->lingoError()
here. Please check other places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b_findEmpty
might need be updated as well since it uses warning
instead of g_lingo->lingoError()
int TextCastMember::getLineHeight(int line) { | ||
Graphics::MacWidget *target = getWidget(); | ||
if (target) { | ||
if (_textType == kTextTypeScrolling) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but making MacTextWindow
a subclass of MacText
, we will eliminate all of these conditions across the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll work on this as my next step.
5fcb01d
to
bcfb766
Compare
bcfb766
to
89d9c2c
Compare
89d9c2c
to
3976649
Compare
Thank you! |
No description provided.