mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 12:00:17 +02:00
synchronization with 'selection' branch
This commit is contained in:
parent
02da14860f
commit
ded9d0f99d
1 changed files with 4 additions and 2 deletions
|
@ -575,7 +575,8 @@ public abstract class ZLTextView extends ZLTextViewBase {
|
|||
if (element instanceof ZLTextWord) {
|
||||
drawWord(
|
||||
areaX, areaY, (ZLTextWord)element, charIndex, -1, false,
|
||||
getTextColor(getTextStyle().Hyperlink)
|
||||
mySelection.isAreaSelected(area)
|
||||
? getSelectedForegroundColor() : getTextColor(getTextStyle().Hyperlink)
|
||||
);
|
||||
} else if (element instanceof ZLTextImageElement) {
|
||||
context.drawImage(areaX, areaY, ((ZLTextImageElement)element).ImageData);
|
||||
|
@ -604,7 +605,8 @@ public abstract class ZLTextView extends ZLTextViewBase {
|
|||
drawWord(
|
||||
area.XStart, area.YEnd - context.getDescent() - getTextStyle().getVerticalShift(),
|
||||
word, 0, len, area.AddHyphenationSign,
|
||||
getTextColor(getTextStyle().Hyperlink)
|
||||
mySelection.isAreaSelected(area)
|
||||
? getSelectedForegroundColor() : getTextColor(getTextStyle().Hyperlink)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue