Changeset 25349

Show
Ignore:
Timestamp:
05/07/08 10:38:09 (4 days ago)
Author:
stippi
Message:
Fixed bad text antialiasing against the colored background used for input
methods. Fixes #2209.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/src/kits/interface/TextView.cpp

    r24136 r25349  
    35773577                        } 
    35783578 
    3579                         if (inputRegion.CountRects() > 0) { 
     3579                        drawing_mode textRenderingMode = B_OP_COPY; 
     3580 
     3581                        if (inputRegion.CountRects() > 0 
     3582                                && ((offset <= fInline->Offset() 
     3583                                        && fInline->Offset() < offset + tabChars) 
     3584                                || (fInline->Offset() <= offset 
     3585                                        && offset < fInline->Offset() + fInline->Length()))) { 
     3586 
     3587                                textRenderingMode = B_OP_OVER; 
     3588 
    35803589                                BRegion textRegion; 
    35813590                                GetTextRegion(offset, offset + length, &textRegion); 
     
    36093618                                &returnedBytes); 
    36103619 
     3620                        view->SetDrawingMode(textRenderingMode); 
    36113621                        view->DrawString(stringToDraw, returnedBytes); 
    36123622                        if (foundTab) {