Skip to content
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

correctly display text under cursor in underdash/vertical line cursor mode #6

Merged
merged 2 commits into from
Sep 5, 2016

Conversation

v-yadli
Copy link

@v-yadli v-yadli commented Aug 15, 2016

Sorry to issue a pull request again. There's a problem in text rendering. Char under cursor was rendered with inverted color but in vertical line/underline mode it should be rendered with just normal color.

mTextPaint.setColor(mPalette[TextStyle.ciCursorForeground]);
// Only use invert color with BLOCK cursor.
// For underdash and vertical line, use normal color.
if(mCursorStyle == 0) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beside this location, there is no other external use of mCursorStyle, it might be slightly better to keep it private and access via an accessor ( for a small potential performance cost, but better isolation ).

@v-yadli
Copy link
Author

v-yadli commented Sep 2, 2016

fixed. :)

@dvhh dvhh merged commit 5afd99d into dvhh:dvhhVariant Sep 5, 2016
@dvhh
Copy link
Owner

dvhh commented Sep 5, 2016

Thanks for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants