1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-06 03:50:19 +02:00

synchronization with 'selection' branch

This commit is contained in:
Nikolay Pultsin 2011-05-20 23:22:05 +01:00
parent 02da14860f
commit ded9d0f99d

View file

@ -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)
);
}
}